Notifications

+ New Notification
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • • {{ $error }}
  • @endforeach
@endif @if (session('success'))
{{ session('success') }}
@endif @if ($notifications->count())
@foreach ($notifications as $notification)

{{ $notification->title }}

{{ Str::limit($notification->message, 100) }}

Target: {{ ucfirst(str_replace('_', ' ', $notification->target_type)) }} Created: {{ $notification->created_at->format('M d, Y H:i') }} @if ($notification->sent_at) Sent: {{ $notification->sent_at->format('M d, Y H:i') }} Recipients: {{ $notification->success_count }}/{{ $notification->recipient_count }} @endif
@php $statusClasses = match($notification->status) { 'draft' => 'bg-slate-100 text-slate-800', 'scheduled' => 'bg-yellow-100 text-yellow-800', 'sent' => 'bg-green-100 text-green-800', 'failed' => 'bg-red-100 text-red-800', default => 'bg-slate-100 text-slate-800' }; @endphp {{ ucfirst($notification->status) }} View
@endforeach
{{ $notifications->links() }}
@else

No notifications found.

@endif