Balance General de {{ $registro->nombre }}

@php $totalActivosDebe = 0; $totalActivosHaber = 0; @endphp @foreach ($activos as $activo) @php $totalActivosDebe += $activo['debe']; $totalActivosHaber += $activo['haber']; @endphp @endforeach @php $totalPasivosDebe = 0; $totalPasivosHaber = 0; @endphp @foreach ($pasivos as $pasivo) @php $totalPasivosDebe += $pasivo['debe']; $totalPasivosHaber += $pasivo['haber']; @endphp @endforeach @php $totalPatrimonioDebe = 0; $totalPatrimonioHaber = 0; @endphp @foreach ($patrimonio as $item) @php $totalPatrimonioDebe += $item['debe']; $totalPatrimonioHaber += $item['haber']; @endphp @endforeach
Tipo Cuenta Debe Haber
Activos
Activo {{ $activo['cuenta'] }} {{ number_format($activo['debe'], 2) }} {{ number_format($activo['haber'], 2) }}
Pasivos
Pasivo {{ $pasivo['cuenta'] }} {{ number_format($pasivo['debe'], 2) }} {{ number_format($pasivo['haber'], 2) }}
Patrimonio
Patrimonio {{ $item['cuenta'] }} {{ number_format($item['debe'], 2) }} {{ number_format($item['haber'], 2) }}
Total Balance General {{ number_format($totalActivosDebe + $totalPasivosDebe + $totalPatrimonioDebe, 2) }} {{ number_format($totalActivosHaber + $totalPasivosHaber + $totalPatrimonioHaber, 2) }}