@extends('layouts.admin') @section('title', 'Send Push Notification') @section('content')
Notification Composer
@csrf
@error('title')
{{ $message }}
@enderror
@error('body')
{{ $message }}
@enderror
@error('audience_type')
{{ $message }}
@enderror
@error('deep_link')
{{ $message }}
@enderror
Optional rich notification image. The URL is sent as `image_url` in the push payload. @error('image_url')
{{ $message }}
@enderror
@foreach($roleLabels as $role => $label)
@endforeach
@error('audience_roles')
{{ $message }}
@enderror

Custom Payload Data

Optional key-value data for in-app navigation or action handling.

@php $oldKeys = old('data_key', ['']); $oldValues = old('data_value', ['']); @endphp @foreach($oldKeys as $index => $oldKey)
@endforeach
Cancel
Best Practices
Keep it short
Use a strong headline and one clear action in the body.
Use role targeting
Send store operations alerts only to store users and delivery updates only to drivers.
Attach a deep link
Route users straight into orders, offers, bookings, wallet, or profile sections.
Notifications are delivered only to active users with a registered FCM token on their device.
@endsection @push('scripts') @endpush