@foreach($cuentas as $cuenta) @foreach($cuenta['transacciones'] as $tx) @endforeach @endforeach
MINISTERIO DE TURISMO
AUTORIDAD DE PLANIFICACIÓN DEL CENTRO HISTÓRICO DE SAN SALVADOR
LIBRO MAYOR
@if($fechaInicio && $fechaFin) DEL {{ \Carbon\Carbon::parse($fechaInicio)->format('d/m/Y') }} AL {{ \Carbon\Carbon::parse($fechaFin)->format('d/m/Y') }} @else TODAS LAS PARTIDAS @endif
(Valores expresados en Dólares de los Estados Unidos de Norte América)
{{ $cuenta['codigo'] }} - {{ $cuenta['nombre'] }}
FECHA TM PROY No. Partida CONCEPTO SUBCUENTA NAT DEBE HABER SALDO
{{ \Carbon\Carbon::parse($tx->fecha)->format('d/m/Y') }} {{ $tx->tm }} {{ $tx->proyecto_programa ?? '' }} {{ $tx->numero_partida }} {{ $tx->concepto }} {{ $tx->codigo_cuenta }} {{ $tx->debe }} {{ $tx->haber }} {{ $tx->saldo_acumulado }}
TOTAL CUENTA {{ $cuenta['totalDebe'] }} {{ $cuenta['totalHaber'] }}