
<!DOCTYPE html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <title><?php echo $__env->yieldContent('title', __('Panel')); ?> — <?php echo e(config('app.name')); ?></title>

    <link rel="icon" type="image/svg+xml" href="<?php echo e(asset('images/isotipo-regiticket.svg')); ?>">

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/startbootstrap-sb-admin-2@4.1.4/vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/startbootstrap-sb-admin-2@4.1.4/css/sb-admin-2.min.css" rel="stylesheet">
    <link href="<?php echo e(asset('css/dashboard-sb-admin-overrides.css')); ?>?v=28" rel="stylesheet">
    <style>
        :root {
            --rt-cherry: #b91830;
            --rt-ios-bg: #f2f2f7;
            --rt-card-radius: 16px;
            --rt-sidebar-bg: #1c1c1e;
        }
        body { background-color: var(--rt-ios-bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
        #content-wrapper { background-color: var(--rt-ios-bg); }
        
        /* Sidebar oscuro */
        #accordionSidebar.sidebar,
        #accordionSidebar.bg-gradient-primary {
            background: var(--rt-sidebar-bg) !important;
            background-image: none !important;
            border-right: 1px solid rgba(255, 255, 255, 0.06);
        }
        .sidebar .sidebar-brand.rt-sidebar-brand {
            background: var(--rt-sidebar-bg) !important;
            min-height: 4.25rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .rt-sidebar-brand-logo--full {
            max-height: 2.75rem;
            width: auto;
            max-width: 85%;
            object-fit: contain;
        }
        .rt-sidebar-brand-logo--iso {
            display: none !important;
            width: 2.25rem;
            height: 2.25rem;
            object-fit: contain;
            margin: 0 auto;
        }
        .sidebar .nav-item .nav-link {
            color: rgba(255, 255, 255, 0.92) !important;
            font-weight: 600;
            padding: 0.8rem 1rem !important;
            border-radius: 10px;
            margin: 0.2rem 0.6rem !important;
        }
        .sidebar .nav-item.active > .nav-link {
            background-color: rgb(185 24 48) !important;
            color: #ffffff !important;
        }
        .sidebar .nav-item.active > .nav-link span {
            color: #ffffff !important;
        }
        /* Hover claro: texto e iconos oscuros (incluye ítem activo) */
        .sidebar .nav-item > .nav-link:hover,
        .sidebar .nav-item > .nav-link:focus-visible,
        .sidebar .nav-item.active > .nav-link:hover,
        .sidebar .nav-item.active > .nav-link:focus-visible {
            background-color: #ffffff !important;
            color: #1c1c1e !important;
        }
        .sidebar .nav-item > .nav-link:hover span,
        .sidebar .nav-item.active > .nav-link:hover span,
        .sidebar .nav-item > .nav-link:focus-visible span,
        .sidebar .nav-item.active > .nav-link:focus-visible span {
            color: #1c1c1e !important;
        }
        .sidebar .nav-item > .nav-link:hover i,
        .sidebar .nav-item.active > .nav-link:hover i,
        .sidebar .nav-item > .nav-link:focus-visible i,
        .sidebar .nav-item.active > .nav-link:focus-visible i {
            color: #1c1c1e !important;
            opacity: 1 !important;
        }
        .sidebar .nav-item .nav-link i {
            color: rgba(255, 255, 255, 0.65);
            margin-right: 12px;
            width: 1.25rem;
            text-align: center;
        }
        .sidebar .nav-item.active > .nav-link i {
            color: #ffffff !important;
        }
        .sidebar-divider {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        .sidebar .sidebar-heading {
            color: rgba(255, 255, 255, 0.45) !important;
        }
        .rt-sidebar-config-inner.collapse-inner {
            background: var(--rt-sidebar-bg) !important;
            margin: 0 0.5rem 0.5rem;
            padding: 0.35rem 0.35rem 0.5rem;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }
        .sidebar .collapse-item {
            display: flex;
            align-items: center;
            min-width: 0;
            padding: 0.5rem 0.75rem 0.5rem 1rem;
            margin: 0.15rem 0;
            color: rgba(255, 255, 255, 0.9) !important;
            font-size: 0.875rem;
            font-weight: 600;
            border-radius: 8px;
            text-decoration: none !important;
        }
        .sidebar .collapse-item .rt-sidebar-collapse-label {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .sidebar .collapse-item i {
            margin-right: 0.5rem;
            opacity: 0.85;
            font-size: 1rem;
        }
        .sidebar .collapse-item:hover,
        .sidebar .collapse-item.active:hover {
            background: #ffffff !important;
            color: #1c1c1e !important;
        }
        .sidebar .collapse-item:hover i,
        .sidebar .collapse-item.active:hover i {
            color: #1c1c1e !important;
            opacity: 1 !important;
        }
        .sidebar .collapse-item.active {
            background: rgba(185, 24, 48, 0.35);
            color: #ffffff !important;
        }
        .sidebar .collapse-item.active i {
            color: #ffffff !important;
        }

        /* Sidebar expandido: alinear icono + texto (sin romper anchos de SB Admin 2) */
        @media (min-width: 768px) {
            .sidebar:not(.toggled) .nav-item > .nav-link {
                display: flex !important;
                align-items: center;
            }
        }

        /* Sidebar contraído: solo iconos; respeta el comportamiento de sb-admin-2 (.sidebar.toggled) */
        @media (min-width: 768px) {
            .sidebar.toggled .sidebar-brand.rt-sidebar-brand {
                padding: 0.65rem 0.35rem !important;
                min-height: 3.75rem;
            }
            .sidebar.toggled .rt-sidebar-brand-logo--full {
                display: none !important;
            }
            .sidebar.toggled .rt-sidebar-brand-logo--iso {
                display: block !important;
                width: 2rem !important;
                height: 2rem !important;
                max-height: none !important;
                max-width: none !important;
            }
            .sidebar.toggled .nav-item > .nav-link {
                display: flex !important;
                width: 6.5rem !important;
                max-width: 6.5rem !important;
                box-sizing: border-box;
                padding: 0.7rem 0.35rem !important;
                margin-left: auto !important;
                margin-right: auto !important;
                justify-content: center !important;
                align-items: center !important;
                text-align: center !important;
            }
            .sidebar.toggled .nav-item > .nav-link span {
                display: none !important;
            }
            .sidebar.toggled .nav-item > .nav-link i {
                margin-right: 0 !important;
                margin-left: 0 !important;
                font-size: 1.125rem !important;
            }
            .sidebar.toggled .sidebar-divider {
                margin: 0.35rem 0.85rem !important;
            }
            .sidebar.toggled #sidebarToggle {
                margin: 0 auto;
            }
            .sidebar.toggled .text-center.d-none.d-md-inline {
                width: 100%;
            }
        }

        /* Navbar Style (Dark Theme) */
        .topbar { background: var(--rt-sidebar-bg) !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .topbar .nav-link { color: rgba(255,255,255,0.8) !important; }
        .topbar .nav-link:hover { color: #ffffff !important; }
        .topbar .text-gray-600 { color: #e5e5ea !important; }
        .topbar-divider { border-right: 1px solid rgba(255,255,255,0.1) !important; }
        #sidebarToggleTop { color: #ffffff !important; }

        .rt-topbar-avatar {
            width: 32px;
            height: 32px;
            object-fit: cover;
            flex-shrink: 0;
            border: 2px solid rgba(255, 255, 255, 0.25);
        }
        .rt-topbar-avatar-placeholder {
            width: 32px;
            height: 32px;
            flex-shrink: 0;
            font-size: 1.1rem;
            background: rgba(255, 255, 255, 0.12);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: rgba(255, 255, 255, 0.65);
        }

        /* iOS Cards */
        .card { border: none !important; border-radius: var(--rt-card-radius) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important; background: #ffffff; }
        .card-header { background: #ffffff !important; border-bottom: 1px solid rgba(0,0,0,0.03) !important; border-radius: var(--rt-card-radius) var(--rt-card-radius) 0 0 !important; }
        
        .btn-primary { background-color: var(--rt-cherry); border-color: var(--rt-cherry); border-radius: 10px; font-weight: 600; }
        .btn-primary:hover { background-color: #9b1428; border-color: #9b1428; }
        
        .text-primary { color: var(--rt-cherry) !important; }

        /* Premium iOS Style Inputs (Global) */
        .rt-ios-input {
            border-radius: 12px !important;
            border: 1px solid rgba(0,0,0,0.08) !important;
            padding: 0.6rem 1rem !important;
            font-size: 0.95rem !important;
            background-color: #f9f9fb !important;
            transition: all 0.2s ease-in-out;
            height: auto !important;
            min-height: 46px;
            color: #1c1c1e !important;
        }
        .rt-ios-input:focus {
            background-color: #ffffff !important;
            border-color: var(--rt-cherry) !important;
            box-shadow: 0 0 0 4px rgba(185, 24, 48, 0.1) !important;
            outline: none;
        }
        .rt-ios-input:disabled, .rt-ios-input[readonly] {
            background-color: #f2f2f7 !important;
            opacity: 0.8;
            cursor: not-allowed;
        }
        .rt-label {
            font-weight: 700;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #8e8e93;
            margin-bottom: 0.5rem;
            display: block;
        }
    </style>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <?php echo $__env->yieldPushContent('head'); ?>
</head>
<body id="page-top">
    <?php
        $logoUrl = asset('images/logotipo-regiticket.png');
    ?>
    <?php
        $authUser = auth()->user();
        $isPendingOrganizer = $authUser
            && $authUser->hasRole(\App\Models\Role::SLUG_ORGANIZADOR)
            && ! $authUser->isOrganizerApproved();
    ?>
    <div id="wrapper">
        <ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
            <a class="sidebar-brand d-flex align-items-center justify-content-center rt-sidebar-brand" href="<?php echo e($isPendingOrganizer ? route('dashboard.organizer.account-status') : route('dashboard')); ?>">
                <img
                    src="<?php echo e($logoUrl); ?>"
                    alt="<?php echo e(config('app.name')); ?>"
                    class="rt-sidebar-brand-logo rt-sidebar-brand-logo--full"
                    height="44"
                    width="auto"
                >
                <img
                    src="<?php echo e(asset('images/isotipo-regiticket.svg')); ?>"
                    alt=""
                    class="rt-sidebar-brand-logo rt-sidebar-brand-logo--iso"
                    width="36"
                    height="36"
                    loading="lazy"
                    aria-hidden="true"
                >
            </a>
            <hr class="sidebar-divider my-0">
            <?php if($isPendingOrganizer): ?>
                <li class="nav-item <?php echo e(request()->routeIs('dashboard.organizer.account-status') ? 'active' : ''); ?>">
                    <a class="nav-link" href="<?php echo e(route('dashboard.organizer.account-status')); ?>">
                        <i class="bi bi-hourglass-split" aria-hidden="true"></i>
                        <span><?php echo e(__('Estado de tu cuenta')); ?></span>
                    </a>
                </li>
            <?php else: ?>
                <li class="nav-item <?php echo e(request()->routeIs('dashboard') ? 'active' : ''); ?>">
                    <a class="nav-link" href="<?php echo e(route('dashboard')); ?>">
                        <i class="bi bi-speedometer2" aria-hidden="true"></i>
                        <span><?php echo e(__('Dashboard')); ?></span>
                    </a>
                </li>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('viewAny', \App\Models\Event::class)): ?>
                    <li class="nav-item <?php echo e(request()->routeIs('dashboard.events.*') ? 'active' : ''); ?>">
                        <a class="nav-link" href="<?php echo e(route('dashboard.events.index')); ?>">
                            <i class="bi bi-calendar-event" aria-hidden="true"></i>
                            <span><?php echo e(__('Eventos')); ?></span>
                        </a>
                    </li>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('viewAny', \App\Models\Venue::class)): ?>
                    <li class="nav-item <?php echo e(request()->routeIs('dashboard.venues.*') ? 'active' : ''); ?>">
                        <a class="nav-link" href="<?php echo e(route('dashboard.venues.index')); ?>">
                            <i class="bi bi-building" aria-hidden="true"></i>
                            <span><?php echo e(__('Recintos')); ?></span>
                        </a>
                    </li>
                <?php endif; ?>
                <li class="nav-item <?php echo e(request()->routeIs('dashboard.payments.*') ? 'active' : ''); ?>">
                    <a class="nav-link" href="<?php echo e(route('dashboard.payments.index')); ?>">
                        <i class="bi bi-currency-dollar" aria-hidden="true"></i>
                        <span><?php echo e(__('Ventas')); ?></span>
                    </a>
                </li>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage-organizer-requests')): ?>
                    <li class="nav-item <?php echo e(request()->routeIs('dashboard.organizers.*') ? 'active' : ''); ?>">
                        <a class="nav-link" href="<?php echo e(route('dashboard.organizers.index')); ?>">
                            <i class="bi bi-person-check" aria-hidden="true"></i>
                            <span><?php echo e(__('Organizadores')); ?></span>
                        </a>
                    </li>
                <?php endif; ?>
                <?php if($authUser && ($authUser->hasRole(\App\Models\Role::SLUG_SUPER_ADMIN) || $authUser->hasRole(\App\Models\Role::SLUG_ADMINISTRADOR))): ?>
                    <li class="nav-item <?php echo e(request()->routeIs('dashboard.catalog.review.*') ? 'active' : ''); ?>">
                        <a class="nav-link" href="<?php echo e(route('dashboard.catalog.review.index')); ?>">
                            <i class="bi bi-geo-alt" aria-hidden="true"></i>
                            <span><?php echo e(__('Catálogo (revisión)')); ?></span>
                        </a>
                    </li>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('viewAny', \App\Models\AuditLog::class)): ?>
                    <li class="nav-item <?php echo e(request()->routeIs('dashboard.audit-logs.*') ? 'active' : ''); ?>">
                        <a class="nav-link" href="<?php echo e(route('dashboard.audit-logs.index')); ?>">
                            <i class="bi bi-clipboard-data" aria-hidden="true"></i>
                            <span><?php echo e(__('Auditoría')); ?></span>
                        </a>
                    </li>
                <?php endif; ?>
                <?php if($authUser): ?>
                    <?php
                        $configMenuOpen = request()->routeIs('dashboard.profile*')
                            || request()->routeIs('dashboard.account.profile*')
                            || request()->routeIs('dashboard.my-events.*')
                            || request()->routeIs('dashboard.users.*')
                            || request()->routeIs('dashboard.settings.*');
                    ?>
                    <hr class="sidebar-divider">
                    <li class="nav-item <?php echo e($configMenuOpen ? 'active' : ''); ?>">
                        <a
                            id="headingDashboardConfig"
                            class="nav-link <?php echo e($configMenuOpen ? '' : 'collapsed'); ?>"
                            href="#"
                            data-toggle="collapse"
                            data-target="#collapseDashboardConfig"
                            aria-expanded="<?php echo e($configMenuOpen ? 'true' : 'false'); ?>"
                            aria-controls="collapseDashboardConfig"
                        >
                            <i class="bi bi-gear-fill" aria-hidden="true"></i>
                            <span><?php echo e(__('Configuración')); ?></span>
                        </a>
                        <div
                            id="collapseDashboardConfig"
                            class="collapse <?php echo e($configMenuOpen ? 'show' : ''); ?>"
                            data-parent="#accordionSidebar"
                            aria-labelledby="headingDashboardConfig"
                        >
                            <div class="collapse-inner rt-sidebar-config-inner">
                                <a
                                    class="collapse-item <?php echo e(request()->routeIs('dashboard.profile*') || request()->routeIs('dashboard.account.profile*') ? 'active' : ''); ?>"
                                    href="<?php echo e($authUser->hasRole(\App\Models\Role::SLUG_ORGANIZADOR) ? route('dashboard.profile') : route('dashboard.account.profile')); ?>"
                                >
                                    <i class="bi bi-person" aria-hidden="true"></i><?php echo e(__('Mi perfil')); ?>

                                </a>
                                <?php if($authUser->hasRole(\App\Models\Role::SLUG_CLIENTE)): ?>
                                    <a
                                        class="collapse-item <?php echo e(request()->routeIs('dashboard.my-events.*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('dashboard.my-events.index')); ?>"
                                    >
                                        <i class="bi bi-calendar-heart" aria-hidden="true"></i><?php echo e(__('Mis eventos')); ?>

                                    </a>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('viewAny', \App\Models\User::class)): ?>
                                    <a
                                        class="collapse-item <?php echo e(request()->routeIs('dashboard.users.*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('dashboard.users.index')); ?>"
                                    >
                                        <i class="bi bi-people" aria-hidden="true"></i><?php echo e(__('Usuarios')); ?>

                                    </a>
                                <?php endif; ?>
                                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage-platform-settings')): ?>
                                    <a
                                        class="collapse-item <?php echo e(request()->routeIs('dashboard.settings.platform-fees*') ? 'active' : ''); ?>"
                                        href="<?php echo e(route('dashboard.settings.platform-fees')); ?>"
                                        title="<?php echo e(__('Comisiones y pasarelas')); ?>"
                                    >
                                        <i class="bi bi-percent flex-shrink-0" aria-hidden="true"></i><span class="rt-sidebar-collapse-label"><?php echo e(__('Comisiones')); ?></span>
                                    </a>
                                <?php endif; ?>
                                <a class="collapse-item" href="<?php echo e(url('/')); ?>" target="_blank" rel="noopener">
                                    <i class="bi bi-globe" aria-hidden="true"></i><?php echo e(__('Sitio público')); ?>

                                </a>
                            </div>
                        </div>
                    </li>
                <?php endif; ?>
            <?php endif; ?>
            <hr class="sidebar-divider d-none d-md-block">
            <div class="text-center d-none d-md-inline">
                <button class="rounded-circle border-0" id="sidebarToggle" aria-label="<?php echo e(__('Alternar menú')); ?>"></button>
            </div>
        </ul>

        <div id="content-wrapper" class="d-flex flex-column">
            <div id="content">
                <nav class="navbar navbar-expand topbar mb-4 static-top shadow">
                    <button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3" aria-label="<?php echo e(__('Menú')); ?>">
                        <i class="bi bi-list" aria-hidden="true"></i>
                    </button>
                    <ul class="navbar-nav ml-auto">
                        <li class="nav-item dropdown no-arrow">
                            <span class="nav-link dropdown-toggle d-flex align-items-center py-2">
                                <?php if($authUser && $authUser->avatarPublicUrl()): ?>
                                    <img src="<?php echo e($authUser->avatarPublicUrl()); ?>" alt="" class="rounded-circle mr-2 rt-topbar-avatar" width="32" height="32">
                                <?php elseif($authUser): ?>
                                    <span class="rounded-circle mr-2 rt-topbar-avatar-placeholder d-inline-flex align-items-center justify-content-center" aria-hidden="true">
                                        <i class="bi bi-person-fill"></i>
                                    </span>
                                <?php endif; ?>
                                <span class="mr-2 d-none d-lg-inline text-gray-600 small"><?php echo e($authUser?->name); ?></span>
                            </span>
                        </li>
                        <div class="topbar-divider d-none d-sm-block"></div>
                        <li class="nav-item">
                            <a class="nav-link" href="<?php echo e(route('logout')); ?>" id="rt-dash-logout-link" role="button">
                                <i class="bi bi-box-arrow-right mr-2 text-gray-400" aria-hidden="true"></i>
                                <?php echo e(__('Salir')); ?>

                            </a>
                            <form id="logout-form-dash" action="<?php echo e(route('logout')); ?>" method="POST" class="d-none">
                                <?php echo csrf_field(); ?>
                            </form>
                        </li>
                    </ul>
                </nav>

                <div class="container-fluid">
                    <?php echo $__env->yieldContent('content'); ?>
                </div>
            </div>

            <footer class="sticky-footer bg-white">
                <div class="container my-auto">
                    <div class="copyright text-center my-auto">
                        <span><?php echo e(config('app.name')); ?> &copy; <?php echo e(date('Y')); ?></span>
                    </div>
                </div>
            </footer>
        </div>
    </div>

    <a class="scroll-to-top rounded" href="#page-top" aria-label="<?php echo e(__('Arriba')); ?>">
        <i class="bi bi-chevron-up" aria-hidden="true"></i>
    </a>

    <script src="https://cdn.jsdelivr.net/npm/startbootstrap-sb-admin-2@4.1.4/vendor/jquery/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/startbootstrap-sb-admin-2@4.1.4/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/startbootstrap-sb-admin-2@4.1.4/vendor/jquery-easing/jquery.easing.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/startbootstrap-sb-admin-2@4.1.4/js/sb-admin-2.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    <script src="<?php echo e(asset('js/dashboard-swal-crud.js')); ?>?v=1"></script>
    <script>
        window.rtSwalCrudI18n = {
            cancel: <?php echo json_encode(__('Cancelar'), 15, 512) ?>,
            deleteConfirm: <?php echo json_encode(__('Eliminar'), 15, 512) ?>,
        };
        window.__rtDashboardFlashI18n = {
            accept: <?php echo json_encode(__('Aceptar'), 15, 512) ?>,
            understood: <?php echo json_encode(__('Entendido'), 15, 512) ?>,
        };
    </script>
    <script src="https://cdn.jsdelivr.net/npm/alpinejs@3.14.9/dist/cdn.min.js" defer></script>
    <script>
        document.addEventListener('DOMContentLoaded', function () {
            var logoutLink = document.getElementById('rt-dash-logout-link');
            if (!logoutLink) {
                return;
            }
            logoutLink.addEventListener('click', function (e) {
                e.preventDefault();
                Swal.fire({
                    icon: 'question',
                    title: <?php echo json_encode(__('¿Cerrar sesión?'), 15, 512) ?>,
                    text: <?php echo json_encode(__('¿Seguro que deseas salir del panel?'), 15, 512) ?>,
                    showCancelButton: true,
                    confirmButtonText: <?php echo json_encode(__('Sí, salir'), 512) ?>,
                    cancelButtonText: <?php echo json_encode(__('Cancelar'), 15, 512) ?>,
                    reverseButtons: true,
                    focusCancel: true,
                    confirmButtonColor: '#b91830',
                    cancelButtonColor: '#6c757d',
                }).then(function (result) {
                    if (result.isConfirmed) {
                        document.getElementById('logout-form-dash').submit();
                    }
                });
            });
        });
    </script>
    <?php if(session('login_swal_success')): ?>
        <script>
            document.addEventListener('DOMContentLoaded', function () {
                Swal.fire({
                    icon: 'success',
                    title: <?php echo json_encode(__('¡Bienvenido/a, :name!', ['name' => Auth::user()->name])) ?>,
                    text: <?php echo json_encode(__('Tu sesión está activa. Desde aquí podrás administrar la plataforma.'), 15, 512) ?>,
                    confirmButtonText: <?php echo json_encode(__('Entrar al panel'), 15, 512) ?>,
                    timer: 5500,
                    timerProgressBar: true,
                });
            });
        </script>
    <?php endif; ?>
    <?php echo $__env->yieldPushContent('scripts'); ?>
    <?php
        $rtDashboardFlash = collect([
            'success' => session('success'),
            'error' => session('error'),
            'warning' => session('warning'),
            'info' => session('info'),
            'status' => session('status'),
        ])->filter(fn ($v) => filled($v))->all();
    ?>
    <?php if(count($rtDashboardFlash)): ?>
        <script>
            window.__rtDashboardFlash = <?php echo json_encode($rtDashboardFlash, 15, 512) ?>;
        </script>
    <?php endif; ?>
    <script src="<?php echo e(asset('js/dashboard-flash-swal.js')); ?>?v=2"></script>
</body>
</html>
<?php /**PATH /var/www/html/resources/views/layouts/dashboard.blade.php ENDPATH**/ ?>