APOPSA SA DE CV
REPORTE ANALITICO DE CUENTA POR SALDO
Cuenta: {{$cuenta->codigo.' - '.$cuenta->nombre_cuenta}}
{{-- Saldo: {{number_format($saldo,2)}}
--}} Desde: {{$dateFormater($desde)}} Hasta: {{ $dateFormater($hasta) }}


@php $cont=1; $debe = 0; $haber = 0; $debeAcumulativo = 0; $haberAcumulativo = 0; $saldo = $saldoAnterior; $cuentaI = substr($cuenta->codigo, 0,1); @endphp @foreach ($transacciones as $item) @php $cont++; @endphp {{-- --}} {{-- --}} @endforeach
# Fecha Codigo Concepto Debe Haber Saldo
{{ number_format($saldoAnterior,2) }}
{{ $cont }}{{ date("d/m/Y", strtotime($item->fecha_contable)) }} {{ $item->codigo }}{{ $item->correlativo }}{{ $item->pre_correlativo }} @if ($item->tipo==1) Cargo @else Abono @endif {{ $item->concepto==""?$item->pt_concepto:$item->concepto }} @if($item->tipo==1) {{ number_format($item->monto,2) }} @php $debe = $debe+$item->monto; $debeAcumulativo = $debeAcumulativo +$debe; @endphp @else {{ number_format(0,2) }} @php $debe =0; $haber =0; @endphp @endif @if($item->tipo==0) {{ number_format($item->monto,2) }} @php $haber = $haber+$item->monto; $haberAcumulativo = $haberAcumulativo + $haber; @endphp @else {{ number_format(0,2) }} @php $haber =0; $debe =0; @endphp @endif @php if($cuentaI == 1 || $cuentaI == 4 ){ $saldo = $saldo + $debe- $haber; } if($cuentaI == 2 || $cuentaI == 3 ||$cuentaI == 5 ){ $saldo = $saldo + $haber - $debe; } @endphp {{ number_format($saldo,2) }} @if ($cuenta->naturaleza==1) @if($item->tipo==1) {{ number_format($item->monto,2) }} @else -{{ number_format($item->monto,2) }} @endif @else @if($item->tipo==0) {{ number_format($item->monto,2) }} @else -{{ number_format($item->monto,2) }} @endif @endif
Total {{ number_format($debeAcumulativo,2) }} {{ number_format($haberAcumulativo,2) }}