{{ __('Notificări') }}

Dashboard / Notificări

@if($unreadCount > 0)
@csrf
@endif @if($notifications->total() > 0)
@csrf @method('DELETE')
@endif
@if($notifications->count() > 0)
@foreach($notifications as $notification) @php $icon = $notification->data['icon'] ?? 'fa-info-circle'; $color = $notification->data['color'] ?? 'blue'; $actionUrl = $notification->data['action_url'] ?? '#'; $isRead = $notification->read_at !== null; // Background color pentru iconița circulară $bgColorClass = match($color) { 'red' => 'bg-red-100 dark:bg-red-900/30', 'orange' => 'bg-orange-100 dark:bg-orange-900/30', 'yellow' => 'bg-yellow-100 dark:bg-yellow-900/30', 'green' => 'bg-green-100 dark:bg-green-900/30', 'blue' => 'bg-blue-100 dark:bg-blue-900/30', default => 'bg-gray-100 dark:bg-gray-900/30', }; // Text color pentru iconița $iconColorClass = match($color) { 'red' => 'text-red-600 dark:text-red-400', 'orange' => 'text-orange-600 dark:text-orange-400', 'yellow' => 'text-yellow-600 dark:text-yellow-400', 'green' => 'text-green-600 dark:text-green-400', 'blue' => 'text-blue-600 dark:text-blue-400', default => 'text-gray-600 dark:text-gray-400', }; @endphp

{{ $notification->data['message'] ?? 'Notificare nouă' }}

{{ $notification->created_at->format('d M Y, H:i') }} {{ $notification->created_at->diffForHumans() }}

@if(!$isRead)
@csrf
@endif @if($actionUrl !== '#') @endif
@csrf @method('DELETE')
@endforeach
{{ $notifications->links() }}
@else

Nu aveți notificări

Veți fi notificat când apar actualizări importante

Înapoi la Dashboard
@endif