@stack('head') @php $pendingAuthCount = \App\Models\AuthorizationQueue::where('status', 'pending')->count(); $user = auth()->user(); $currentRoute = request()->route()?->getName() ?? ''; $navItems = \App\Models\NavigationMenu::forLocation('admin'); $badges = ['pending_auth' => $pendingAuthCount]; @endphp
@yield('title', 'Dashboard')
{{ $user->name ?? 'Staff' }}
{{ $user->role->name ?? $user->designation ?? 'Staff' }}
@csrf
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
Please correct the following:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @yield('content')
@stack('scripts')