@php $companyName = \App\Models\Option::get('company_name', config('app.name', 'ERPLax')); $companyLogo = \App\Models\Option::get('company_logo'); $companyFavicon = \App\Models\Option::get('company_favicon'); $authUser = Auth::guard('web')->user(); try { $activeModules = \App\Models\Module::where('is_active', true)->orderBy('sort_order')->get(); } catch (\Exception $e) { $activeModules = collect(); } try { $notifications = $authUser ? \App\Models\Notification::where('user_id', $authUser->id) ->where('user_type', 'user') ->latest('created_at') ->take(10) ->get() : collect(); $hasNotifications = $notifications->count() > 0; $notificationCount = $notifications->where('is_read', false)->count(); } catch (\Exception $e) { $notifications = collect(); $hasNotifications = false; $notificationCount = 0; } @endphp
{{ $notification->title }}
@if($notification->message){{ $notification->message }}
@endifNo notifications
You're all caught up!