@forelse($notifications as $notif)
@php
$typeColors = [
'payment_reminder' => '#f59e0b',
'booking_confirmed' => '#22c55e',
'booking_cancelled' => '#ef4444',
'general' => '#6c757d',
];
$typeIcons = [
'payment_reminder' => 'fa-credit-card',
'booking_confirmed' => 'fa-check-circle',
'booking_cancelled' => 'fa-times-circle',
'general' => 'fa-bell',
];
$color = $typeColors[$notif->type] ?? '#6c757d';
$icon = $typeIcons[$notif->type] ?? 'fa-bell';
@endphp
{{ $notif->title }}
@if(!$notif->is_read)
Unread
@endif
{{
$notif->message }}
@if($notif->user)
{{ $notif->user->name }} ยท {{
$notif->user->email }}
@endif
@if($notif->booking)
Unit {{
$notif->booking->plot_number }}
@endif
{{
$notif->created_at->diffForHumans() }}
Read {{ $notif->read_at?->diffForHumans()
}}
@empty
No notifications found.
@endforelse
@if($notifications->hasPages())
@endif