@use('App\Models\Setting') @use('App\Models\User') @php $notifications = []; if (Auth::check()) { $user = User::findOrFail(Auth::user()->id); $notifications = $user->notifications()->latest('created_at'); } $settings = Setting::first()->values; @endphp
@push('js') @endpush