{{ trans('notifications') }}

{{ trans('admin.total_notifications', ['count' => $notifications->total()]) }}
@if (session('success')) @endif

{{ trans('admin.notification_actions') }}

{{ trans('admin.notification_actions_desc') }}

{{ trans('admin.per_page') }}
@if($notifications->count() > 0)
@foreach($notifications as $notification)
@if(!$notification->read_at) @endif

{{ $notification->data['message'] ?? 'Notification' }}

@if(!$notification->read_at) {{ trans('admin.unread') }} @endif

{{ trans('admin.from_user', ['name' => $notification->data['user_name'] ?? 'Unknown', 'email' => $notification->data['user_email'] ?? '']) }}

@if(isset($notification->data['action_url']) && $notification->data['action_url']) {{ trans('admin.view_details') }} @endif @if(!$notification->read_at) @else @endif
@endforeach
{{ $notifications->links() }}
@else

{{ trans('admin.no_notifications_found') }}

{{ trans('admin.no_notifications_description') }}

@endif
@push('scripts') @endpush