@extends('layouts.admin') @section('title', 'Push Notifications') @section('content')
Send app notifications to everyone or selected user roles.
| 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 YetCreate your first broadcast for customers, stores, or drivers. Send Notification |
|||||