@extends('layouts.app') @section('title', __('dashboard.Notifications')) @section('page_heading', __('dashboard.Notifications')) @section('content')
@if(Auth::user()->unreadNotifications->count() > 0)
@csrf
@endif
@include('layouts.partials.collection-page-styles')

{{ __('dashboard.Notifications') }}

جميع الإشعارات — المقروءة وغير المقروءة.

{{ $notifications->total() }} إشعار @if(Auth::user()->unreadNotifications->count() > 0) {{ Auth::user()->unreadNotifications->count() }} غير مقروء @endif
@if($notifications->isEmpty()) @include('layouts.partials.index-empty-state', [ 'icon' => 'fa-solid fa-bell-slash', 'title' => __('dashboard.No notifications found.'), 'message' => 'لا توجد إشعارات حالياً.' ]) @else
@foreach($notifications as $notification)
{{ $notification->data['message'] ?? 'Notification' }}
{{ $notification->created_at->diffForHumans() }}
@if($notification->unread())
@csrf
@endif
@csrf @method('DELETE')
@endforeach
{{ $notifications->links() }}
@endif
@endsection