@extends('layouts.admin') @section('title', 'Push Notifications') @section('content')
{{ $broadcasts->total() }}
Total Broadcasts
{{ number_format($broadcasts->sum('delivered_count')) }}
Delivered Tokens
{{ number_format($broadcasts->sum('token_count')) }}
Attempted Tokens
{{ number_format($broadcasts->sum('failed_count')) }}
Failed Tokens
Broadcast History
{{ $broadcasts->total() }} records
@forelse($broadcasts as $broadcast) @empty @endforelse
Message Audience Delivery Status Sent By Sent At
{{ $broadcast->title }}
{{ $broadcast->body }}
@if($broadcast->deep_link)
Deep link {{ $broadcast->deep_link }}
@endif @if(!empty($broadcast->data_payload['image_url']))
Image View
@endif
@if($broadcast->audience_type === 'all') All Users @else
@foreach($broadcast->audience_roles ?? [] as $role) {{ $roleLabels[$role] ?? $role }} @endforeach
@endif
Users: {{ number_format($broadcast->recipients_count) }}
Attempted: {{ number_format($broadcast->token_count) }}
Delivered: {{ number_format($broadcast->delivered_count) }}
Failed: {{ number_format($broadcast->failed_count) }}
@php $statusClass = match ($broadcast->status) { 'sent' => 'bg-success', 'processing' => 'bg-warning text-dark', 'failed' => 'bg-danger', default => 'bg-secondary', }; @endphp {{ $broadcast->status }} @if($broadcast->failure_reason)
{{ $broadcast->failure_reason }}
@endif
{{ $broadcast->sender?->name ?? 'System' }} {{ $broadcast->sent_at?->format('d M Y, h:i A') ?? '-' }}
No Push Notifications Yet

Create your first broadcast for customers, stores, or drivers.

Send Notification
@endsection