RED NACIONAL DE HOSPITALES

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 MAYORIZADAS

@endif @if($codigoCuenta)

FILTRO CUENTA: {{ $codigoCuenta }}

@endif

(Valores expresados en Dólares de los Estados Unidos de Norte América)

@if(count($cuentas) === 0)
Sin registros en el Libro Mayor para el periodo seleccionado.
@else @foreach($cuentas as $cuenta)
{{ $cuenta['_padreCodigo'] }}
@foreach($cuenta['transacciones'] as $tx) @endforeach
FECHA TM PRES UP LT No. Partida CONCEPTO SUBCUENTA DEBE HABER SALDO
{{ \Carbon\Carbon::parse($tx->fecha)->format('d/m/Y') }} {{ is_numeric($tx->tm) ? 'TM' . $tx->tm : ($tx->tm ?? '') }} {{ $tx->pres ?: '-' }} {{ $tx->unidad_presupuestaria ?: '-' }} {{ $tx->linea_trabajo ?: '-' }} {{ $tx->numero_partida ?: '-' }} {{ $tx->concepto ?: '-' }} @if(!empty($tx->analitico)) {{ $tx->analitico }} @elseif(!empty($tx->subcuenta)) {{ $tx->subcuenta }} @else {{ $tx->codigo_cuenta }} @endif ${{ number_format($tx->debe, 2) }} ${{ number_format($tx->haber, 2) }} ${{ number_format($tx->saldo_acumulado, 2) }}
TOTAL ${{ number_format($cuenta['totalDebe'], 2) }} ${{ number_format($cuenta['totalHaber'], 2) }} ${{ number_format($cuenta['totalSaldo'], 2) }}
@endforeach @endif