{{-- Card Mobile para item financeiro --}} @php if (in_array($item->pagamento_situacao, ['sucesso','isento','bolsa','bolsista'])) $cardBg = 'bg-emerald-50/50 dark:bg-emerald-900/10'; elseif (in_array($item->pagamento_situacao, ['em-atraso','vencido'])) $cardBg = 'bg-red-50/50 dark:bg-red-900/10'; else $cardBg = ''; $hasTx = $item->transacoes && $item->transacoes->count() > 0; @endphp
{{-- Cabeçalho: tipo + badge --}}

$item])> {{ $item->codigo ?? '' }}{{ $item->codigo ? ' - ' : '' }}@if ($item->financeiro_tipo == 'pagamento-matricula')Matrícula @elseif ($item->financeiro_tipo == 'pagamento-mensalidade')Mensalidade @else{{ $item->descricao ?? '--' }}@endif · Nº {{ $item->matricula->matricula_num ?? '--' }}

{{ $item->matricula->curso->nome ?? '' }}@if($item->matricula->turma) · {{ $item->matricula->turma->turma_nome ?? $item->matricula->turma->turma_codigo ?? '' }}@endif

Cód. {{ $item->codigo ?? '--' }} @if($hasTx) · {{ $item->transacoes->count() }} transação(ões) @endif

@include('livewire.aluno.partials._financeiro-badge', ['situacao' => $item->pagamento_situacao])
{{-- Detalhes em grid --}}
Vencimento {{ dataData($item->vencimento_data ?? '--') }}
Valor {{ convertMoney($item->vencimento_valor ?? 0, 'R$') }}
@if ($item->pagamento_data)
Pago em {{ dataData($item->pagamento_data) }}
Valor pago {{ convertMoney($item->pagamento_valor ?? 0, 'R$') }}
@endif @if (($item->vencimento_valor_desconto ?? 0) > 0)
Desconto {{ convertMoney($item->vencimento_valor_desconto, 'R$') }}
@endif @if ($item->pagamento_forma && in_array($item->pagamento_situacao, ['sucesso','isento','bolsa','bolsista']))
Forma {{ $item->pagamento_forma }}
@endif
{{-- Botão de ação (mobile) --}} @if (in_array($item->pagamento_situacao, ['agendado','em-atraso','vencido']))
@if (dataCarbon($item->vencimento_data, 'Ymd') > now()->format('Ymd')) ANTECIPAR PAGAMENTO @else PAGAR AGORA @endif
@elseif (in_array($item->pagamento_situacao, ['boleto-gerado','pix-gerado','aguardando','aguardando-pagamento','erro-credtcard','pagamento-matricula-aguardando','pendente','processando','iniciada'])) @endif