@if ($rep->valor == '1')
@endif

{{ $help::empresa()->empresa }}
{{ $help::empresa()->direccion }}

ANALISIS DE SALDO POR CLIENTE
AL: {{ $dateFormater($al) }}

CLIENTES LOCALES


@php $totalFinal_01_30 = 0; $totalFinal_31_60 = 0; $totalFinal_61_90 = 0; $totalFinal_91_120 = 0; $totalFinal_121_plus = 0; $totalFinal_Final = 0; @endphp @foreach ($clientes_locales as $cliente) @php $total_01_30 = 0; $total_31_60 = 0; $total_61_90 = 0; $total_91_120 = 0; $total_121_plus = 0; $Totalfinal = 0; $total_01_30A = 0; $total_31_60A = 0; $total_61_90A = 0; $total_91_120A = 0; $total_121_plusA = 0; $TotalfinalA = 0; @endphp @foreach ($cliente as $documento) @foreach ($cliente as $documento) @php $fechaEmision = !empty($documento->fecha_emision) ? $dateFormater($documento->fecha_emision) : 'Fecha no disponible'; $fechaVencimiento = 'Fecha no disponible'; @endphp @endforeach @php $total_01_30 = $documento->timeline_abonos->abonos_01_30; $total_31_60 = $documento->timeline_abonos->abonos_31_60; $total_61_90 = $documento->timeline_abonos->abonos_61_90; $total_91_120 = $documento->timeline_abonos->abonos_91_120; $total_121_plus = $documento->timeline_abonos->abonos_121_plus; $total_01_30A += $documento->timeline_abonos->abonos_01_30; $total_31_60A += $documento->timeline_abonos->abonos_31_60; $total_61_90A += $documento->timeline_abonos->abonos_61_90; $total_91_120A += $documento->timeline_abonos->abonos_91_120; $total_121_plusA += $documento->timeline_abonos->abonos_121_plus; $Totalfinal = $total_01_30 + $total_31_60 + $total_61_90 + $total_91_120 + $total_121_plus; $TotalfinalA = $total_01_30A + $total_31_60A + $total_61_90A + $total_91_120A + $total_121_plusA; @endphp @if ($documento->cancelado == 1) @php $documento->total_cancelar = 0.0; $documento->timeline_abonos->abonos_01_30 = 0.0; $documento->timeline_abonos->abonos_31_60 = 0.0; $documento->timeline_abonos->abonos_61_90 = 0.0; $documento->timeline_abonos->abonos_91_120 = 0.0; $documento->timeline_abonos->abonos_121_plus = 0.0; $Totalfinal = 0.0; $total_01_30A = 0; $total_31_60A = 0; $total_121_plusA = 0; $TotalfinalA = 0; @endphp @endif @endforeach
CLIENTE: {{ $cliente[0]->nombre_cliente }}
 
TIPO
FACTURA
N° DE DOCUMENTO CONDICIÓN MONTO EMITIDO VENCIMIENTO DIAS DE 1-30 DIAS DE 31-60 DIAS DE 61-90 DIAS DE 91-120 DIAS MAS DE 121 DIAS Total
{{ $tipoFormater($documento->tipo) }} {{ $documento->documento_code }} {{ $documento->condicion }}${{ number_format($documento->total_cancelar, 2) }} {{ $fechaEmision }} {{ $fechaVencimiento }} {{ $documento->dias_credito }} $ {{ number_format($documento->timeline_abonos->abonos_01_30, 2) }} $ {{ number_format($documento->timeline_abonos->abonos_31_60, 2) }} $ {{ number_format($documento->timeline_abonos->abonos_61_90, 2) }} $ {{ number_format($documento->timeline_abonos->abonos_91_120, 2) }} $ {{ number_format($documento->timeline_abonos->abonos_121_plus, 2) }} $ {{ number_format($Totalfinal, 2) }}
Total $ {{ number_format($total_01_30A, 2) }} $ {{ number_format($total_31_60A, 2) }} $ {{ number_format($total_61_90A, 2) }} $ {{ number_format($total_91_120A, 2) }} $ {{ number_format($total_121_plusA, 2) }} $ {{ number_format($TotalfinalA, 2) }}
@php $totalFinal_01_30 += $total_01_30A; $totalFinal_31_60 += $total_31_60A; $totalFinal_61_90 += $total_61_90A; $totalFinal_91_120 += $total_91_120A; $totalFinal_121_plus += $total_121_plusA; $totalFinal_Final += $TotalfinalA; @endphp @endforeach
DE 1-30 DIAS DE 31-60 DIAS DE 61-90 DIAS DE 91-120 DIAS MAS DE 121 DIAS Total
TOTAL CUENTAS POR COBRAR GENERAL $ {{ number_format($totalFinal_01_30, 2) }} $ {{ number_format($totalFinal_31_60, 2) }} $ {{ number_format($totalFinal_61_90, 2) }} $ {{ number_format($totalFinal_91_120, 2) }} $ {{ number_format($totalFinal_121_plus, 2) }} $ {{ number_format($totalFinal_Final, 2) }}
{{-- --}}