@if ($paymentsDetails)
Detalle de Cobranza | {{ $paymentsDetails['service_billing']['nombre_local'] }} - {{ $paymentsDetails['service_billing']['timestamp_cobranza'] }}
Por favor espere
Ventas Confirmadas
@if ($paymentsDetails['viajes'])
@foreach ($paymentsDetails['viajes'] as $viaje) @endforeach
Fecha Cliente Kms Cobros Cliente Cobro Local Cobro Total Forma de Pago Origen Código Venta
{{ $viaje['fecha'] }} {{ $viaje['cliente'] }} {{ $viaje['kms'] }} ${{ number_format($viaje['costo_cliente'], 0, ',', '.') }} ${{ number_format($viaje['costo_local'], 0, ',', '.') }} ${{ number_format($viaje['costo_total'], 0, ',', '.') }} {{ $viaje['forma_pago'] }} {{ $viaje['origen'] }} {{ $viaje['codigo_origen'] }}

Viajes:
{{ number_format($paymentsDetails['totales']['viajes']['cantidad'], 0, ',', '.') }}
Cobro clientes:
${{ number_format($paymentsDetails['totales']['viajes']['costo_cliente'], 0, ',', '.') }}
Cobro local:
${{ number_format($paymentsDetails['totales']['viajes']['costo_local'], 0, ',', '.') }}
Cobro total:
${{ number_format($paymentsDetails['totales']['viajes']['costo_total'], 0, ',', '.') }}
@endif
@if ($paymentsDetails['reembolsos'])
Reclamos Reembolsados
@foreach ($paymentsDetails['reembolsos'] as $reembolso) @endforeach
Fecha Cliente Reembolsado en cobranza Reembolsado previamente Comentario Origen Código Venta
{{ $reembolso['fecha'] }} {{ $reembolso['cliente'] }} ${{ number_format($reembolso['reembolsado_en_cobranza'], 0, ',', '.') }} ${{ number_format($reembolso['reembolsado_previamente'], 0, ',', '.') }} {{ $reembolso['comentarios'] }} {{ $reembolso['origen'] ?? '' }} {{ $reembolso['codigo_origen'] ?? '' }}

Cantidad:
{{ number_format($paymentsDetails['totales']['reembolsos']['cantidad'], 0, ',', '.') }}
Reembolsado previamente:
${{ number_format($paymentsDetails['totales']['reembolsos']['reembolsado_previamente'], 0, ',', '.') }}
Reembolsado en cobranza:
${{ number_format($paymentsDetails['totales']['reembolsos']['reembolsado_en_cobranza'], 0, ',', '.') }}
@endif
Resumen
@if ($paymentsDetails['totales'])
@if ($paymentsDetails['totales']['viajes']['total_efectivo'] < 0) @endif @if ($paymentsDetails['totales']['viajes']['total_efectivo'] < 0) @endif
Costo Servicio Total Reembolsos en CobranzaTotal EfectivoSaldo a {{ (int) $paymentsDetails['totales']['cobro'] > 0 ? 'Pagar' : 'Favor'}}
${{ number_format($paymentsDetails['totales']['viajes']['costo_total'], 0, ',', '.') }} ${{ number_format($paymentsDetails['totales']['reembolsos']['reembolsado_en_cobranza'], 0, ',', '.') }} ${{ number_format($paymentsDetails['totales']['viajes']['total_efectivo'], 0, ',', '.') }} ${{ number_format(abs($paymentsDetails['totales']['cobro']), 0, ',', '.') }}
@endif
@endif