@extends('layouts.app') @section('title','Sessão de caixa') @section('content') @php $methodLabels=['cash'=>'Dinheiro','pix'=>'Pix','debit_card'=>'Débito','credit_card'=>'Crédito','bank_transfer'=>'Transferência','other'=>'Outro']; $typeLabels=['receipt'=>'Recebimento','supply'=>'Suprimento','withdrawal'=>'Sangria','expense'=>'Despesa']; @endphp
| Data/hora | Operador | Tipo | Forma | Descrição | Entrada | Saída |
|---|---|---|---|---|---|---|
| {{ $tx->occurred_at->format('d/m/Y H:i') }} | {{ $tx->user?->name ?: 'Sistema' }} | {{ $typeLabels[$tx->type] ?? $tx->type }} | {{ $methodLabels[$tx->method] ?? $tx->method }} | {{ $tx->description }} | {{ $tx->direction==='in' ? 'R$ '.number_format((float)$tx->amount,2,',','.') : '—' }} | {{ $tx->direction==='out' ? 'R$ '.number_format((float)$tx->amount,2,',','.') : '—' }} |
| Nenhuma movimentação. | ||||||