Abertura{{ $cashbox->opened_at->format('d/m/Y H:i') }}
Fechamento{{ $cashbox->closed_at?->format('d/m/Y H:i') ?? '—' }}
Conta{{ $cashbox->account?->name }}
Fundo InicialR$ {{ number_format((float)$cashbox->opening_balance, 2, ',', '.') }}
EntradasR$ {{ number_format($cashbox->total_credits, 2, ',', '.') }}
SaídasR$ {{ number_format($cashbox->total_debits, 2, ',', '.') }}
@if(!$cashbox->isOpen())
Saldo ContadoR$ {{ number_format((float)$cashbox->closing_balance, 2, ',', '.') }}
@php $diff = (float)$cashbox->closing_balance - $cashbox->expected_balance; @endphp
Diferença
{{ $diff >= 0 ? '+' : '' }}R$ {{ number_format(abs($diff), 2, ',', '.') }}
@endif
Saldo Esperado
R$ {{ number_format($cashbox->expected_balance, 2, ',', '.') }}