{{-- RESUMO (JS vai jogar no header) --}}
@if($folhas->isEmpty())
Nenhum depósito encontrado para os filtros aplicados.
@else @foreach($folhas as $folha) @php $estadoClasse = 'teal'; $estadoTexto = 'Confirmado'; if($folha->em_falta == 1) { $estadoClasse = 'coral'; $estadoTexto = 'Em Falta'; } elseif(($folha->valor_divergente ?? 0) > 0) { $estadoClasse = 'amber'; $estadoTexto = 'Divergente: ' . number_format($folha->valor_divergente, 2, ',', ' ') . ' EUR'; } elseif(!$folha->confirmado) { $estadoClasse = 'gray'; $estadoTexto = 'Pendente'; } @endphp @endforeach
Folha Data Turno Operador Forma Pagto. Data Prog. Valor Estado Ações
{{ $folha->n_folha_caixa }} {{ date('d/m/Y', strtotime($folha->data_folha_caixa)) }} {{ $folha->turno }} {{ $folha->nome_operador ?? '-' }} {{ $folha->nome_forma_pagamento ?? '-' }} {{ date('d/m/Y', strtotime($folha->data_programada_deposito)) }} EUR {{ number_format($folha->total_bruto, 2, ',', ' ') }} {{ $estadoTexto }}
@endif