@extends('layouts.admin', [ 'title' => 'Reminder Report', 'pageTitle' => 'Reminder Report', 'active' => 'reports', ]) @section('content')

Analyze reminder delivery by channel, success rate, and recent logs.

@include('admin.reports.partials.nav', ['activeTab' => 'reminders'])
@include('admin.reports.partials.filters')
@foreach ($kpis as $item)

{{ $item['label'] }}

{{ $item['value'] }}

($item['tone'] ?? null) === 'success', 'text-red-600' => ($item['tone'] ?? null) === 'danger', 'text-booklio-muted' => ! in_array(($item['tone'] ?? null), ['success', 'danger'], true), ])>{{ $item['note'] }}

@endforeach
@forelse ($successBars as $rate)
{{ $rate['rate'] }}%
@empty
No reminder logs in this range.
@endforelse
@foreach ($channelSuccess as $item)
{{ $item['label'] }}{{ $item['percent'] }}%
@endforeach
@forelse ($logs as $log) @php $statusValue = $log->status instanceof \App\Enums\ReminderStatus ? $log->status->value : (string) $log->status; @endphp {{ $log->customer?->name ?? '-' }} {{ \Illuminate\Support\Str::headline($log->type) }} {{ \Illuminate\Support\Str::headline($log->channel) }} {{ ($log->sent_at ?? $log->created_at)?->format('M d, Y - g:i A') }} {{ \Illuminate\Support\Str::headline($statusValue) }} @empty No reminder logs found. @endforelse
@endsection