@stack('styles')
@if(!in_array(auth()->user()->role, ['admin', 'kepala_sekolah']))
@if(auth()->user()->unreadNotifications->count() > 0)
{{ auth()->user()->unreadNotifications->count() }}
@endif
{{ auth()->user()->unreadNotifications->count() }} Notifikasi
@forelse(auth()->user()->unreadNotifications->take(5) as $notification)
{{ $notification->data['judul'] }}
{{ Str::limit($notification->data['pesan'], 40) }}
{{ $notification->created_at->diffForHumans() }}
@empty
Tidak ada notifikasi baru
@endforelse
Lihat Semua
@endif
@if(Auth::user() && Auth::user()->avatar)
@else
{{ Auth::user() ? strtoupper(substr(Auth::user()->name, 0, 1)) : 'G' }}
@endif
@if(Auth::user()) {{ Auth::user()->name ?? 'User' }} @else Guest @endif
Profile
@csrf
Log Out
@include('layouts.navigation')
@isset($header)
{{ $header }}
@endisset
@yield('content')
@stack('scripts')