@extends('admin.reports.pdf.layout') @php $reportBadge = 'Relatório de Receitas'; $reportTitle = 'Receitas do Período'; $maxDay = $byDay->max('total') ?: 1; $maxMethod = $byMethod->max('total') ?: 1; @endphp @section('content') {{-- KPIs --}}
| Método | Total | Qtd | % |
|---|---|---|---|
| {{ $bm->method?->name ?? 'Outro' }} | R$ {{ number_format($bm->total,2,',','.') }} | {{ $bm->qty }} | {{ $totalRevenue > 0 ? round($bm->total/$totalRevenue*100,1) : 0 }}% |
| TOTAL | R$ {{ number_format($totalRevenue,2,',','.') }} | {{ $totalCount }} | 100% |
| Data | Hóspede | Localizador | Método | Valor |
|---|---|---|---|---|
| {{ $p->paid_at?->format('d/m/Y H:i') }} | {{ $p->reservation?->guest?->full_name ?? '—' }} | #{{ $p->reservation?->locator }} | {{ $p->method?->name ?? '—' }} | R$ {{ number_format($p->amount,2,',','.') }} |
| Nenhum pagamento no período. | ||||