{{-- A report as one document: dompdf renders it for PDF downloads, and with $printable (plus $direction) it is the print-ready page, whose browser "Save as PDF" draws every script (dompdf can't shape Arabic or show Bengali). --}} @php($printable ??= false) {{ $report['title'] }} @if ($printable)
{{ __('To get a PDF, choose "Save as PDF" as the printer.') }}
@endif

{{ setting('branding.app_name') ?: config('app.name') }} · {{ __(':report report', ['report' => $report['title']]) }}

{{ $report['from']->toFormattedDateString() }} – {{ $report['to']->toFormattedDateString() }} · {{ __('Generated :time', ['time' => now()->toDayDateTimeString()]) }}

@foreach ($report['summary'] as [$label, $value, $valueFormat]) {{ $label }}: {{ \App\Services\Admin\ReportService::format($value, $valueFormat) }} @endforeach

@include('admin.reports.partials.table', ['numericClass' => 'num'])
@if (count($report['rows']) > count($rows))

{{ __('This PDF lists the first :shown of :total rows; the totals cover all of them. Download CSV or Excel for every row.', ['shown' => count($rows), 'total' => count($report['rows'])]) }}

@endif @if ($printable) @endif