{{-- ─── Cabeçalho ─── --}}
{{ $reservation->hotel?->name ?? 'Hotel' }}
@if($reservation->hotel?->address)
{{ $reservation->hotel->address }}
@endif
COMANDA / DAY USE
{{-- ─── Dados da Comanda ─── --}}
Comanda: {{ $reservation->locator }}
Cliente: {{ $reservation->guest?->full_name ?? 'Passante' }}
Abertura: {{ $reservation->check_in_realized?->format('d/m/Y H:i') ?? '—' }}
@if($reservation->check_out_realized)
Fechamento: {{ $reservation->check_out_realized->format('d/m/Y H:i') }}
@endif
Operador: {{ auth()->user()->name }}
{{-- ─── Itens ─── --}}
ITENS CONSUMIDOS
@php $activeItems = $reservation->items->where('status','active'); @endphp @if($activeItems->count() > 0) @foreach($activeItems as $item) @endforeach
Descrição Qtd Total
{{ Str::limit($item->description, 28) }} {{ $item->quantity }} R${{ number_format($item->total_price,2,',','.') }}
@else
Nenhum item lançado.
@endif
{{-- ─── Totais ─── --}} @php $totalItems = $reservation->total_items; $totalGeneral = $reservation->total_general; $totalPaid = $reservation->total_paid; $balance = $reservation->balance; @endphp
Subtotal Consumo: R${{ number_format($totalItems, 2, ',', '.') }}
TOTAL: R${{ number_format($totalGeneral, 2, ',', '.') }}
{{-- ─── Pagamentos ─── --}}
PAGAMENTOS
@php $activePay = $reservation->payments->where('status','active'); @endphp @if($activePay->count() > 0) @foreach($activePay as $p)
{{ $p->method?->name ?? 'Dinheiro' }}: R${{ number_format($p->amount, 2, ',', '.') }}
@endforeach @else
Nenhum pagamento.
@endif
Total Pago: R${{ number_format($totalPaid, 2, ',', '.') }}
@if($balance > 0.01)
SALDO PENDENTE: R${{ number_format($balance, 2, ',', '.') }}
@elseif($balance < -0.01)
TROCO: R${{ number_format(abs($balance), 2, ',', '.') }}
@else
STATUS: *** QUITADO ***
@endif
{{-- ─── Rodapé ─── --}}