{{ __('Historial de Pagos') }}

Registro completo de todos los pagos del sistema.

Volver a Facturación
@if (session('status'))
{{ session('status') }}
@endif

Total Registrado

@money($totalRegistered)

Todos los pagos

Confirmados

@money($totalConfirmed)

Pagos verificados

Pendientes

@money($totalPending)

Por confirmar

Rechazados

@money($totalRejected)

Pagos anulados

@if(request()->hasAny(['status', 'method'])) Limpiar @endif

Registro de Pagos

{{ $payments->count() }} pagos encontrados
@forelse($payments as $payment) @empty @endforelse
Fecha Factura Cliente Monto Método Referencia Estado Acciones

{{ $payment->payment_date?->format('d/m/Y') ?? '-' }}

{{ $payment->payment_date?->format('H:i') ?? '' }}

{{ $payment->invoice->number }} {{ $payment->invoice->serviceOrder->customer->name ?? 'N/A' }} @money($payment->amount) {{ $payment->method }} {{ $payment->reference ?? '-' }} @php $statusConfig = match($payment->status) { 'confirmado' => ['class' => 'bg-green-500/10 text-green-500 border-green-500/20', 'label' => 'CONFIRMADO'], 'rechazado' => ['class' => 'bg-red-500/10 text-red-500 border-red-500/20', 'label' => 'RECHAZADO'], default => ['class' => 'bg-yellow-500/10 text-yellow-500 border-yellow-500/20', 'label' => 'PENDIENTE'], }; @endphp {{ $statusConfig['label'] }}
@if($payment->isPending())
@csrf @method('PATCH')
@csrf @method('PATCH')
@else @endif
No se encontraron pagos.