@stack('styles') @vite(['resources/css/app.css', 'resources/js/app.js'])
{{-- Mobile overlay --}}
{{-- Sidebar --}} {{-- Main Content Area --}}
{{-- Topbar --}}
{{-- Mobile menu button + page title --}}
@if(isset($header))
{{ $header }}
@endif
{{-- Notification Bell --}} @php $unreadCount = Auth::user()->unreadNotifications()->count(); $topNotifications = Auth::user()->notifications()->latest()->limit(5)->get(); @endphp

Notifikasi

@forelse($topNotifications as $notification)
@php $notifType = $notification->data['type'] ?? null; $notifStatus = $notification->data['submission_status'] ?? null; $bgColor = $notifStatus === 'accepted' ? 'bg-emerald-500' : ($notifStatus === 'rejected' ? 'bg-red-500' : 'bg-primary-500'); $icon = $notifStatus === 'accepted' ? 'fa-check' : ($notifStatus === 'rejected' ? 'fa-times' : 'fa-bell'); @endphp

{{ $notification->created_at->format('d/m/Y H:i') }}

{{ $notification->data['message'] ?? 'Notifikasi baru' }}

@empty
Tidak ada notifikasi
@endforelse
@if($topNotifications->count() > 0) Lihat Semua @endif
{{-- User Dropdown --}}

{{ Auth::user()->name }}

{{ Auth::user()->email }}

Profile
@csrf
{{-- Page Content --}}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{ $slot }}
@stack('scripts')