{{-- SECCIÓN INGRESOS --}}
| INGRESOS DE GESTIÓN |
|
|
@foreach ($ingresos_gestion as $ingreso_nombre => $cuentas)
| {{ $cuentas->first()->padre_nombre }} |
{{ $cuentas->sum('saldo_corriente') }} |
{{ $cuentas->sum('saldo_anterior') }} |
@foreach ($cuentas as $cuenta)
| {{ $cuenta->nombre }} |
{{ $cuenta->saldo_corriente }} |
{{ $cuenta->saldo_anterior }} |
@endforeach
@endforeach
| TOTAL INGRESOS DE GESTIÓN |
{{ $total_ingresos_act }} |
{{ $total_ingresos_ant }} |
|
|
|
{{-- Espacio --}}
{{-- SECCIÓN GASTOS --}}
| GASTOS DE GESTIÓN |
|
|
@foreach ($gastos_gestion as $gastos_nombre => $cuentas)
| {{ $cuentas->first()->padre_nombre }} |
{{ $cuentas->sum('saldo_corriente') }} |
{{ $cuentas->sum('saldo_anterior') }} |
@foreach ($cuentas as $cuenta)
| {{ $cuenta->nombre }} |
{{ $cuenta->saldo_corriente }} |
{{ $cuenta->saldo_anterior }} |
@endforeach
@endforeach
| SUBTOTAL GASTOS |
{{ $total_gastos_act }} |
{{ $total_gastos_ant }} |
@php
$resultado_act = $total_ingresos_act - $total_gastos_act;
$resultado_ant = $total_ingresos_ant - $total_gastos_ant;
@endphp
| RESULTADO DEL EJERCICIO (AHORRO/DESAHORRO) |
{{ $resultado_act }} |
{{ $resultado_ant }} |
| TOTAL DE GASTOS DE GESTIÓN
|
{{ $resultado_act + $total_gastos_act }} |
{{ $resultado_ant + $total_gastos_ant }} |