@php $title = 'Detalhes do Pagamento'; @endphp

Pagamento #{{ $pagamento->id ?? '001' }}

Detalhes do pagamento
Informações do Pagamento

{{ $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') : '-' }}

{{ $pagamento->numero_documento ?? '001234' }}

{{ number_format($pagamento->juros ?? 0.00, 2, ',', '.') }}%

@if($pagamento->observacoes ?? null)
Observações

{{ $pagamento->observacoes ?? 'Pagamento via cartão de crédito, parcelado em 3x.' }}

@endif
Resumo Financeiro
Valor Original: R$ {{ number_format($pagamento->valor ?? 1500.00, 2, ',', '.') }}
Desconto: - R$ {{ number_format($pagamento->desconto ?? 0.00, 2, ',', '.') }}
Juros: + {{ number_format($pagamento->juros ?? 0.00, 2, ',', '.') }}%
Multa: + R$ {{ number_format($pagamento->multa ?? 0.00, 2, ',', '.') }}

Valor Final: R$ {{ number_format(($pagamento->valor ?? 1500.00) - ($pagamento->desconto ?? 0.00) + ($pagamento->multa ?? 0.00), 2, ',', '.') }}
Histórico

Pagamento criado

{{ isset($pagamento->created_at) ? $pagamento->created_at->format('d/m/Y H:i') : '10/06/2025 14:30' }}
@if(($pagamento->status ?? 'PENDENTE') === 'PAGO')

Pagamento confirmado

{{ isset($pagamento->data_pagamento) ? \Carbon\Carbon::parse($pagamento->data_pagamento)->format('d/m/Y H:i') : '15/06/2025 10:15' }}
@endif