{{ __('Notifications Management') }}

{{ __('Send New Notification') }}
@if (session('success')) @endif @if (session('error')) @endif
{{ __('Reset') }}
@forelse ($notifications as $notification) @empty @endforelse
{{ __('Type') }} {{ __('User') }} {{ __('Message') }} {{ __('Status') }} {{ __('Date') }} {{ __('Actions') }}
@php $type = class_basename($notification->type); $type = str_replace('Notification', '', $type); @endphp {{ $type }} {{ $notification->user_name }}
{{ $notification->user_email }}
@php $data = json_decode($notification->data); $message = $data->message ?? ($data->title ?? 'No message'); @endphp {{ $message }} {{ $notification->read_at ? 'Read' : 'Unread' }} {{ \Carbon\Carbon::parse($notification->created_at)->format('M d, Y H:i') }} {{ __('View') }} @if (!$notification->read_at)
@csrf @method('PUT')
@endif
@csrf @method('DELETE')
{{ __('No notifications found.') }}
{{ $notifications->links() }}