@yield('title', 'Dashboard')
{{ now()->format('D, d M Y') }}
{{ now()->hour >= 6 && now()->hour < 14 ? 'Morning' : (now()->hour < 22 ? 'Afternoon' : 'Night') }}
{{-- Notification Bell --}}
@php $unreadCount = \App\Models\HmisNotification::where('user_id', Auth::id())->where('is_read', false)->count(); @endphp
{{-- Dropdown panel --}}
Notifications
@php $notifs = \App\Models\HmisNotification::where('user_id', Auth::id())->orderByDesc('created_at')->take(15)->get(); @endphp
@forelse($notifs as $n)
@empty
{{ $n->title }}
{{ Str::limit($n->message, 80) }}
{{ $n->created_at->diffForHumans() }}
No notifications yet
@endforelse
Viewing as: {{ session('impersonate_role') }}
Sidebar and permissions reflect this role's view. Actions still execute as Admin.
Exit Role View
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if(session('upload_warning'))
{{-- Surfaces silent upload failures (file too large, storage not
writable, etc.) — without this the controller's session flash
never renders and the user thinks documents attached when they
didn't. --}}
Upload warning: {{ session('upload_warning') }}
@foreach($errBag->all() as $error)
@endif
{{ $error }}
@endforeach@yield('content')