@extends('layouts.admin') @section('title', 'Push Notifications') @section('page-title', 'Push Notification Center') @section('content')
{{-- Send Form --}}

Send Notification

@csrf
@error('title')

{{ $message }}

@enderror
@error('body')

{{ $message }}

@enderror
{{-- Preview --}}

Preview

AX

Notification Title

Your message will appear here...

{{-- History --}}

Notification History

@forelse($logs as $log)

{{ $log->title }}

{{ $log->target }}

{{ $log->body }}

By {{ $log->admin->name ?? 'Admin' }} ยท {{ $log->created_at->diffForHumans() }}

{{ $log->sent_count }}

sent

@empty
No notifications sent yet.
@endforelse
{{ $logs->links() }}
@endsection @push('scripts') @endpush