@php $title = 'Pagamentos'; @endphp
| ID | Cliente | Valor | Forma de Pagamento | Status | Data Vencimento | Data Pagamento | Ações |
|---|---|---|---|---|---|---|---|
| #{{ $pagamento->id ?? '001' }} | {{ $pagamento->cliente_nome ?? 'Cliente Exemplo' }} | R$ {{ number_format($pagamento->valor ?? 1500.00, 2, ',', '.') }} | {{ $pagamento->forma_pagamento ?? 'Cartão de Crédito' }} | @php $status = $pagamento->status ?? 'PENDENTE'; $badgeClass = match($status) { 'PAGO' => 'success', 'PENDENTE' => 'warning', 'VENCIDO' => 'danger', 'CANCELADO' => 'secondary', default => 'secondary' }; @endphp {{ $status }} | {{ isset($pagamento->data_vencimento) ? \Carbon\Carbon::parse($pagamento->data_vencimento)->format('d/m/Y') : '15/07/2025' }} | {{ isset($pagamento->data_pagamento) ? \Carbon\Carbon::parse($pagamento->data_pagamento)->format('d/m/Y') : '-' }} |
|
| Nenhum pagamento cadastrado ainda. | |||||||