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

Monitor invoice volume, paid and unpaid totals, overdue invoices, and collection health.

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

{{ $item['label'] }}

{{ $item['value'] }}

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

@endforeach
@forelse ($amountBars as $bar)
@empty
No invoices in this range.
@endforelse
@foreach ($collectionHealth as $item)
{{ $item['label'] }}{{ $item['percent'] }}%
@endforeach
@forelse ($invoices as $invoice) {{ $invoice->invoice_number }} {{ $invoice->customer?->name ?? '-' }} {{ strtoupper($invoice->currency ?? 'USD') }} {{ number_format((float) $invoice->total, 2) }} {{ $invoice->issue_date?->format('M d, Y') }} {{ $invoice->status_label }} @empty No invoices found. @endforelse
@endsection