@extends('layouts.app') @section('title', 'Notification History') @section('content')

Notification History

Current Notifications

{{ $stats['total_sent'] }}

Total Sent

{{ $stats['success_rate'] }}%

Success Rate

{{ $stats['user_engagement']['total_users_notified'] ?? 0 }}

Users Reached

{{ round(($stats['user_engagement']['average_notifications_per_user'] ?? 0), 1) }}

Avg per User

Channel Distribution

@foreach($stats['channel_breakdown'] as $channel => $count)
{{ $count }} {{ ucfirst($channel) }}
@endforeach

Notification Types

@foreach($stats['type_breakdown'] as $type => $count)
{{ $count }} {{ class_basename($type) }}
@endforeach

Recent Notification Logs

@if($logs->count() > 0)
@foreach($logs as $log) @endforeach
Date/Time Type Channels Status Results
{{ $log->sent_at->diffForHumans() }} {{ class_basename($log->notification_type) }} @foreach($log->channels as $channel) {{ $channel }} @endforeach @if($log->success) Success @else Failed @endif
@else
No notification history

No notifications have been sent in the selected time period.

@endif
@push('scripts') @endpush @endsection