@extends('layouts.admin-modern') @section('title', 'Gestion des Notifications - Administration') @section('content')

Gestion des Notifications

Gérez toutes les notifications du système et communiquez avec vos utilisateurs.

Analyses
Total Notifications
{{ number_format($stats['total']) }}
+5% ce mois
Non Lues
{{ number_format($stats['unread']) }}
-2% ce mois
Aujourd'hui
{{ number_format($stats['today']) }}
+12% aujourd'hui
Taux de Lecture
{{ $stats['read_rate'] }}%
+3% ce mois

Actions Rapides

@csrf
@csrf @method('DELETE')

Notifications

{{ $notifications->total() }} notification(s) au total

@if($notifications->count() > 0)
0 sélectionnée(s)
@foreach($notifications as $notification) @php $typeColors = [ 'booking' => ['bg' => 'bg-blue-100', 'text' => 'text-blue-800', 'icon' => 'text-blue-600'], 'offer' => ['bg' => 'bg-green-100', 'text' => 'text-green-800', 'icon' => 'text-green-600'], 'message' => ['bg' => 'bg-cyan-100', 'text' => 'text-cyan-800', 'icon' => 'text-cyan-600'], 'review' => ['bg' => 'bg-yellow-100', 'text' => 'text-yellow-800', 'icon' => 'text-yellow-600'], 'system' => ['bg' => 'bg-gray-100', 'text' => 'text-gray-800', 'icon' => 'text-gray-600'], 'payment' => ['bg' => 'bg-red-100', 'text' => 'text-red-800', 'icon' => 'text-red-600'] ]; $typeIcons = [ 'booking' => 'calendar-check', 'offer' => 'handshake', 'message' => 'envelope', 'review' => 'star', 'system' => 'cog', 'payment' => 'credit-card' ]; $data = $notification->data; $type = $data['type'] ?? 'system'; $colors = $typeColors[$type] ?? $typeColors['system']; @endphp
{{ ucfirst($type) }}
@if($notification->read_at) Lue @else Non lue @endif

{{ $data['title'] ?? 'Notification' }}

{{ $data['message'] ?? 'Aucun contenu' }}

@if($notification->notifiable && $notification->notifiable->profile_photo) Photo @else
@endif

{{ $notification->notifiable->name ?? 'Utilisateur supprimé' }}

{{ $notification->notifiable->email ?? 'N/A' }}

{{ $notification->created_at->format('d/m/Y H:i') }}
{{ $notification->created_at->diffForHumans() }}
@if($notification->read_at)
Lue le {{ $notification->read_at->format('d/m/Y H:i') }}
@endif
Voir @if(!$notification->read_at)
@csrf
@endif
@endforeach
@if($notifications && $notifications->hasPages())
Affichage de {{ $notifications->firstItem() }} à {{ $notifications->lastItem() }} sur {{ $notifications->total() }} résultats
{{ $notifications->appends(request()->query())->links() }}
@endif @else
Aucune notification trouvée
Aucune notification ne correspond aux critères de recherche
@endif
@endsection @push('scripts') @endpush