<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width,initial-scale=1">
        <meta name="theme-color" content="#7bd300">
        <link rel="icon" type="image/png" sizes="512x512" href="<?php echo e(asset('images/desxpert-icon.png')); ?>">
        <link rel="apple-touch-icon" href="<?php echo e(asset('images/desxpert-icon.png')); ?>">
        <title><?php echo $__env->yieldContent('title'); ?> · Desxpert Admin</title>
        <script>document.documentElement.dataset.theme=localStorage.getItem('desxpert-admin-theme')||'light';</script>
        <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css','resources/js/app.js']); ?>
    </head>
    <body data-admin-shell>
        <aside class="sidebar"><a class="brand" href="<?php echo e(route('dashboard')); ?>"><img src="<?php echo e(asset('images/desxpert-logo.png')); ?>" alt="Desxpert"></a>
            <div class="admin-card">
                <div class="avatar"><?php echo e(strtoupper(substr(auth()->user()->name??'A',0,1))); ?></div>
                <div><b><?php echo e(auth()->user()->name??'Administrator'); ?></b><span><?php echo e(auth()->user()->roleLabel()); ?></span></div>
            </div>
 <nav><a class="<?php echo e(request()->routeIs('dashboard')?'active':''); ?>" href="<?php echo e(route('dashboard')); ?>"><i data-lucide="layout-grid"></i>Dashboard</a><a class="<?php echo e(request()->routeIs('bookings*')?'active':''); ?>" href="<?php echo e(route('bookings')); ?>"><i data-lucide="calendar-check-2"></i>Booking Management</a><a class="<?php echo e(request()->routeIs('users*')?'active':''); ?>" href="<?php echo e(route('users')); ?>"><i data-lucide="users-round"></i>Users Management</a><?php if(auth()->user()->isSystemAdmin()): ?><a class="<?php echo e(request()->routeIs('admin-users*')?'active':''); ?>" href="<?php echo e(route('admin-users')); ?>"><i data-lucide="shield-check"></i>Admin Users</a><?php endif; ?><a class="<?php echo e(request()->routeIs('applications*')?'active':''); ?>" href="<?php echo e(route('applications')); ?>"><i data-lucide="file-check-2"></i>Applications</a><a class="<?php echo e(request()->routeIs('professions*')?'active':''); ?>" href="<?php echo e(route('professions')); ?>"><i data-lucide="briefcase-business"></i>Professions</a><a class="<?php echo e(request()->routeIs('payments.*')?'active':''); ?>" href="<?php echo e(route('payments.management')); ?>"><i data-lucide="credit-card"></i>Payment Management</a><a class="<?php echo e(request()->routeIs('disbursements*')?'active':''); ?>" href="<?php echo e(route('disbursements')); ?>"><i data-lucide="hand-coins"></i>Disbursements</a></nav>
            <div class="sidebar-bottom"><a href="mailto:support@desxpert.com"><i data-lucide="circle-help"></i>Support</a>
                <form method="post" action="<?php echo e(route('logout')); ?>"><?php echo csrf_field(); ?><button><i data-lucide="log-out"></i>Sign out</button></form>
            </div>
        </aside>
        <main>
            <header><button class="menu-button" aria-label="Open menu"><i data-lucide="menu"></i></button>
                <div>
                    <h1><?php echo $__env->yieldContent('title'); ?></h1>
                    <p><?php echo $__env->yieldContent('subtitle'); ?></p>
                </div>
                <div class="header-actions">
                    <form class="global-search" action="<?php echo e(route('users')); ?>"><i data-lucide="search"></i><input name="q" placeholder="Search experts or clients..."></form>
                    <button class="theme-toggle" type="button" aria-label="Switch color theme" title="Switch color theme"><i class="theme-sun" data-lucide="sun"></i><i class="theme-moon" data-lucide="moon"></i></button>
                    <div class="notification-menu">
                        <button class="bell" type="button" aria-label="Notifications" aria-expanded="false"> <i data-lucide="bell"></i><?php if($headerUnreadNotifications): ?><span><?php echo e($headerUnreadNotifications>99?'99+':$headerUnreadNotifications); ?></span><?php endif; ?></button>
                        <div class="notification-dropdown">
                            <header><div><strong>Notifications</strong><small><?php echo e($headerUnreadNotifications); ?> unread</small></div><?php if($headerUnreadNotifications): ?><form method="post" action="<?php echo e(route('notifications.read-all')); ?>"><?php echo csrf_field(); ?> <?php echo method_field('patch'); ?><button>Mark all read</button></form><?php endif; ?></header>
                            <div><?php $__empty_1 = true; $__currentLoopData = $headerNotifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><article class="<?php echo e($notification->read_at?'':'unread'); ?>"><span><i data-lucide="<?php echo e(($notification->data['type']??null)==='professional_application_submitted'?'file-check-2':'bell'); ?>"></i></span><form method="post" action="<?php echo e(route('notifications.read',$notification)); ?>"><?php echo csrf_field(); ?> <?php echo method_field('patch'); ?><button><b><?php echo e($notification->title); ?></b><p><?php echo e($notification->body); ?></p><small><?php echo e($notification->created_at?->diffForHumans()); ?></small></button></form></article><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><div class="notification-dropdown-empty"><i data-lucide="bell-off"></i><span>No notifications yet</span></div><?php endif; ?></div>
                            <a href="<?php echo e(route('notifications')); ?>">View all notifications <i data-lucide="arrow-right"></i></a>
                        </div>
                    </div>
                </div>
            </header>
            <section class="content"><?php if(session('success')): ?><div class="notice"><i data-lucide="circle-check"></i><?php echo e(session('success')); ?></div><?php endif; ?> <?php if($errors->any()): ?><div class="notice error"><i data-lucide="circle-alert"></i><?php echo e($errors->first()); ?></div><?php endif; ?> <?php echo $__env->yieldContent('content'); ?></section>
        </main>
        <script src="https://unpkg.com/lucide@0.468.0"></script>
    </body>
</html>
<?php /**PATH /var/www/html/dev/desxpert-admin/resources/views/layouts/admin.blade.php ENDPATH**/ ?>