@php $hour = date('H'); if ($hour < 12) { $greeting = 'Good Morning'; } elseif ($hour < 18) { $greeting = 'Good Afternoon'; } else { $greeting = 'Good Evening'; } @endphp {{ $greeting }}, {{ Auth::user()->name }}! 👋

Real-time GPS Vehicle Tracking System

@if(!auth()->user()->hasRole('technician')) Add Sale @endif

Notifications

@if($unreadCount > 0) {{ $unreadCount }} unread @endif
@php $recentNotifications = auth()->user()->notifications()->latest()->take(5)->get(); @endphp @forelse($recentNotifications as $notification)
@if($notification->type == 'success') @elseif($notification->type == 'error') @elseif($notification->type == 'warning') @else @endif

{{ $notification->title ?? 'Notification' }}

{{ Str::limit($notification->message ?? 'No message', 50) }}

{{ $notification->created_at->diffForHumans() }}

@empty

No notifications

@endforelse
View All Notifications
@if(false) {{-- Set to true when message system is implemented --}}

Messages

No messages

View All Messages
@endif {{ __('Profile') }} {{ __('Settings') }}
@csrf {{ __('Log Out') }}
{{ __('Dashboard') }}
{{ Auth::user()->name }}
{{ Auth::user()->email }}
{{ __('Profile') }}
@csrf {{ __('Log Out') }}