@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
{{-- 🔥 SI HAY CARGA, MOSTRAR RESULTADOS --}}
@if($carga)
Total
{{ $carga->total_registros }}
{{ $carga->registros_validos }}
Válidos
{{ $carga->registros_invalidos }}
Inválidos
{{ $carga->porcentaje_exito }}%
% Éxito
@if($carga && $carga->registros_invalidos == 0)
@php
$datosPagoCompletos = $carga->fecha_pago && $carga->no_operacion;
@endphp
@endif
@if($cliente)
@php
$completo =
$cliente->regimen_fiscal &&
$cliente->codigo_postal ;
@endphp
Cliente encontrado: {{ $cliente->razon_social ?? $cliente->nombre }}
RFC: {{ $cliente->rfc }}
Régimen:
{{ $cliente->regimen_fiscal ?? '❌' }}
CP:
{{ $cliente->codigo_postal ?? '❌' }}
Cuenta Ordenante:
{{ $cliente->cuenta_ordenante ?? '❌' }}
Banco Ordenante:
{{ $cliente->banco_ordenante ?? '❌' }}
RFC Banco Ord:
{{ $cliente->rfc_banco_ordenante ?? '❌' }}
Cuenta Beneficiario:
{{ $cliente->cuenta_beneficiario ?? '❌' }}
Banco Beneficiario:
{{ $cliente->banco_beneficiario ?? '❌' }}
RFC Banco Ben:
{{ $cliente->rfc_banco_beneficiario ?? '❌' }}
@else
⚠️ No existe el cliente en el catálogo con ese RFC.
@endif
| # |
UUID |
RFC |
Cliente |
Serie |
Folio |
Fecha |
Monto |
Subtotal |
IVA |
Tasa |
Estado |
@php
$totalMonto = 0;
$totalSubtotal = 0;
$totalIVA = 0;
@endphp
@foreach($carga->detalles as $row)
@php
$monto = $row->monto ?? 0;
$subtotal = round($monto / 1.16, 2);
$iva = round($monto - $subtotal, 2);
$totalMonto += $monto;
$totalSubtotal += $subtotal;
$totalIVA += $iva;
@endphp
| {{ $row->linea_excel }} |
{{ $row->uuid }} |
{{ $row->rfc_cliente }} |
{{ $row->nombre_cliente }} |
{{ $row->serie }} |
{{ $row->folio }} |
{{ $row->fecha_pago ?? '-' }} |
${{ number_format($monto, 2) }} |
${{ number_format($subtotal, 2) }} |
${{ number_format($iva, 2) }} |
16% |
@if($row->es_valido)
OK
@else
{{ $row->error }}
@endif
|
@endforeach
| TOTALES: |
${{ number_format($totalMonto, 2) }} |
${{ number_format($totalSubtotal, 2) }} |
${{ number_format($totalIVA, 2) }} |
| {{-- Estado --}}
@endif