TaPrestation
{{ __('Accueil') }} {{ __('Services') }} {{ __('Matériel à louer') }} {{ __('Annonces') }} {{ __('Vidéos') }}
@auth
@php $unreadMessagesCount = Auth::user()->receivedMessages()->whereNull('read_at')->count(); @endphp @if($unreadMessagesCount > 0) {{ $unreadMessagesCount > 99 ? '99+' : $unreadMessagesCount }} @endif @if(Auth::user()->hasRole('prestataire')) @endif
@if(Auth::user()->hasRole('client') && Auth::user()->client && Auth::user()->client->avatar) {{ Auth::user()->name }} @elseif(Auth::user()->profile_photo_path) {{ Auth::user()->name }} @elseif(Auth::user()->profile_photo_url) {{ Auth::user()->name }} @else
{{ strtoupper(substr(Auth::user()->name, 0, 1)) }}
@endif
{{ Auth::user()->name }}
{{ Auth::user()->email }}
@if(Auth::user()->hasRole('client')) {{ __('Tableau de bord') }} @elseif(Auth::user()->hasRole('prestataire')) {{ __('Tableau de bord') }} @else {{ __('Tableau de bord') }} @endif
{{ __('Mon profil') }} @if(Auth::user()->hasRole('prestataire'))
Mes services
{{ __('Ajouter un service') }} {{ __('Gérer mes prestations') }} {{ __('Mes Vidéos') }}
Location de matériel
{{ __('Ajouter un équipement') }} {{ __('Voir mes équipements') }}
Annonces
{{ __('Mettre un produit en vente') }} {{ __('Voir mes ventes actives') }}
@elseif(Auth::user()->hasRole('client')) {{ __('Mes messages') }} {{ __('Mes réservations') }} {{ __('Mes locations') }} {{ __('Prestataires suivis') }} @endif
@csrf {{ __('Déconnexion') }}
@else
Connexion Inscription
@endauth
@auth @php $unreadMessagesCount = Auth::user()->receivedMessages()->whereNull('read_at')->count(); @endphp @if($unreadMessagesCount > 0) {{ $unreadMessagesCount > 99 ? '99+' : $unreadMessagesCount }} @endif

Notifications

@if($unreadCount > 0)
@csrf
@endif
@php $recentNotifications = Auth::user()->notifications()->whereNull('read_at')->orderBy('created_at', 'desc')->limit(3)->get(); @endphp @if($recentNotifications->isEmpty())

Aucune nouvelle notification

@else
@foreach($recentNotifications as $notification) @php // Determine notification type and apply appropriate icon/colors $isEquipmentNotification = strpos($notification->type, 'Equipment') !== false; $isServiceNotification = strpos($notification->type, 'Booking') !== false; if ($isEquipmentNotification) { // Equipment notifications - green color and tools icon $iconClass = 'fa-tools'; $colorClass = 'text-green-500'; $bgClass = 'bg-green-100'; } elseif ($isServiceNotification) { // Service/Booking notifications - blue color and cogs icon $iconClass = 'fa-cogs'; $colorClass = 'text-blue-500'; $bgClass = 'bg-blue-100'; } else { // Default styling for other notifications $iconClass = 'fa-bell'; $colorClass = 'text-blue-600'; $bgClass = 'bg-blue-100'; } $data = is_array($notification->data) ? $notification->data : json_decode($notification->data, true); $title = $data['title'] ?? 'Notification'; $message = $data['message'] ?? ''; @endphp

{{ $title }}

{{ $message }}

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

@endforeach
Voir toutes les notifications
@endif
@endauth
{{ __('Accueil') }} {{ __('Services') }} {{ __('Matériel à louer') }} {{ __('Vidéos') }} {{ __('Annonces') }}
@auth
@if(Auth::user()->hasRole('client') && Auth::user()->client && Auth::user()->client->avatar) {{ Auth::user()->name }} @elseif(Auth::user()->profile_photo_path) {{ Auth::user()->name }} @elseif(Auth::user()->profile_photo_url) {{ Auth::user()->name }} @else
{{ strtoupper(substr(Auth::user()->name, 0, 1)) }}
@endif
{{ Auth::user()->name }}
{{ Auth::user()->email }}
@if(Auth::user()->hasRole('client')) {{ __('Tableau de bord') }} @elseif(Auth::user()->hasRole('prestataire')) {{ __('Tableau de bord') }} @else {{ __('Tableau de bord') }} @endif
{{ __('Mon profil') }} @if(Auth::user()->hasRole('prestataire')) {{ __('Mes services') }} {{ __('Matériel à louer') }} {{ __('Mes Vidéos') }} {{ __('Mes messages') }} {{ __('Mon Agenda') }} {{ __('Voir mes ventes actives') }} @elseif(Auth::user()->hasRole('client')) {{ __('Mes messages') }} {{ __('Mes réservations') }} {{ __('Mes locations') }} {{ __('Prestataires suivis') }} @endif {{ __('Paramètres du compte') }}
@csrf
@else
{{ __('Connexion') }} {{ __('Inscription') }}
@endauth