@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

{{ $notification->title }}

← Back
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • • {{ $error }}
  • @endforeach
@endif @if (session('success'))
{{ session('success') }}
@endif

Status

{{ ucfirst($notification->status) }}

Created

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


Message

{{ $notification->message }}

Send To

{{ ucfirst(str_replace('_', ' ', $notification->target_type)) }}

@if ($notification->store_app_id)

Store

{{ $notification->store_app_id }}

@endif
@if ($notification->sent_at)

Total Recipients

{{ $notification->recipient_count }}

Sent Successfully

{{ $notification->success_count }}

Failed

{{ $notification->failed_count }}

Sent At

{{ $notification->sent_at->format('M d H:i') }}

@if ($notification->error_log && count($notification->error_log) > 0)

Errors

    @foreach ($notification->error_log as $error)
  • • {{ $error }}
  • @endforeach
@endif @endif
@if ($notification->status === 'draft')
@csrf
Edit
@csrf @method('DELETE')
@endif
@if ($notification->sent_at)

Recipients

@forelse ($recipients as $recipient) @empty @endforelse
Device Type Status Error Message Sent At
{{ ucfirst($recipient->customerDevice->device_type) }} {{ ucfirst($recipient->status) }} {{ $recipient->error_message ?? '—' }} {{ $recipient->created_at->format('M d H:i') }}
No recipients found
{{ $recipients->links() }}
@endif