BALANCE GENERAL

Desde: {{ $desde }}   Hasta: {{ $hasta }}
{{-- ========================================================= --}} {{-- ======================== ACTIVOS ========================= --}} {{-- ========================================================= --}}

ACTIVOS

@foreach ($activos as $c) @php $len = strlen($c['codigo']); $nivel = $c['nivel']; $clase = match(true) { $len == 1 => 'nivel-1', $len == 2 => 'nivel-2', $len == 4 => 'nivel-3', default => 'nivel-4' }; if ($c['saldo_anterior']==0 && $c['debe']==0 && $c['haber']==0 && $c['total_final']==0) continue; @endphp @endforeach
Código Nombre Saldo anterior Débitos Créditos Total Saldo final
{{ $c['codigo'] }} {{ $c['nombre'] }} {{ number_format($c['saldo_anterior'],0,',','.') }} {{ number_format($c['debe'],0,',','.') }} {{ number_format($c['haber'],0,',','.') }} {{ number_format($c['total'],0,',','.') }} {{ number_format($c['total_final'],0,',','.') }}
TOTAL ACTIVOS {{ number_format($totalActivos,0,',','.') }}
{{-- ========================================================= --}} {{-- ===================== PASIVOS ============================ --}} {{-- ========================================================= --}}

PASIVOS

@foreach ($pasivos as $c) @php $len = strlen($c['codigo']); $nivel = $c['nivel']; $clase = match(true) { $len == 1 => 'nivel-1', $len == 2 => 'nivel-2', $len == 4 => 'nivel-3', default => 'nivel-4' }; if ($c['saldo_anterior']==0 && $c['debe']==0 && $c['haber']==0 && $c['total_final']==0) continue; @endphp @endforeach
Código Nombre Saldo anterior Débitos Créditos Total Saldo final
{{ $c['codigo'] }} {{ $c['nombre'] }} {{ number_format($c['saldo_anterior'],0,',','.') }} {{ number_format($c['debe'],0,',','.') }} {{ number_format($c['haber'],0,',','.') }} {{ number_format($c['total'],0,',','.') }} {{ number_format($c['total_final'],0,',','.') }}
TOTAL PASIVOS {{ number_format($totalPasivos,0,',','.') }}
{{-- ========================================================= --}} {{-- ================== PATRIMONIO =========================== --}} {{-- ========================================================= --}}

PATRIMONIO

@foreach ($patrimonio as $c) @php $len = strlen($c['codigo']); $nivel = $c['nivel']; $clase = match(true) { $len == 1 => 'nivel-1', $len == 2 => 'nivel-2', $len == 4 => 'nivel-3', default => 'nivel-4' }; if ($c['saldo_anterior']==0 && $c['debe']==0 && $c['haber']==0 && $c['total_final']==0) continue; @endphp @endforeach
Código Nombre Saldo anterior Débitos Créditos Total Saldo final
{{ $c['codigo'] }} {{ $c['nombre'] }} {{ number_format($c['saldo_anterior'],0,',','.') }} {{ number_format($c['debe'],0,',','.') }} {{ number_format($c['haber'],0,',','.') }} {{ number_format($c['total'],0,',','.') }} {{ number_format($c['total_final'],0,',','.') }}
TOTAL PATRIMONIO {{ number_format($totalPatrimonio,0,',','.') }}