@php $cop = fn($n) => '$'.number_format((int)$n, 0, ',', '.'); @endphp
| Referencia | Campaña | Plan | Monto | Pasarela | Estado | Pagado | Vence |
|---|---|---|---|---|---|---|---|
| {{ $s->reference }} | {{ $s->campaign?->candidate_name ?? '—' }} | {{ $s->plan?->name ?? '—' }} | {{ $cop($s->amount) }} | {{ $s->gateway ?? '—' }}{{ $s->is_test ? ' (pruebas)' : '' }} | @php $c = match($s->status){ 'activa'=>'act','pendiente'=>'pen',default=>'fal' }; @endphp {{ ucfirst($s->status) }} | {{ $s->paid_at?->format('Y-m-d H:i') ?? '—' }} | {{ $s->ends_at?->format('Y-m-d') ?? '—' }} |