| GASTOS DE GESTIÓN |
CORRIENTE |
ANTERIOR |
@foreach ($gastos_gestion as $gastos_nombre => $cuentas)
@php
$total_saldo_actual = $cuentas->sum('saldo_corriente');
$total_saldo_anterior = $cuentas->sum('saldo_anterior');
@endphp
| {{ $cuentas->first()->padre_nombre }} |
$ {{ number_format($total_saldo_actual) }} |
$ {{ number_format($total_saldo_anterior) }} |
@foreach ($cuentas as $cuenta)
| {{ $cuenta->nombre }} |
${{ number_format($cuenta->saldo_corriente, 2) }} |
${{ number_format($cuenta->saldo_anterior, 2) }} |
@endforeach
|
@endforeach
| SUBTOTAL |
${{ number_format($total_gastos_act, 2) }} |
${{ number_format($total_gastos_ant, 2) }} |
@php
$resultado_ejercicio_actual = $total_ingresos_act - $total_gastos_act;
$resultado_ejercicio_anterior = $total_ingresos_ant - $total_gastos_ant;
$total_gastos_gestion_actual = $resultado_ejercicio_actual + $total_gastos_act;
$total_gastos_gestion_anterior = $resultado_ejercicio_anterior + $total_gastos_ant;
@endphp
| RESULTADO DEL EJERCICIO |
${{ number_format($resultado_ejercicio_actual, 2) }} |
${{ number_format($resultado_ejercicio_anterior, 2) }} |
| TOTAL DE GASTOS DE GESTION |
${{ number_format($total_gastos_gestion_actual, 2) }} |
${{ number_format($total_gastos_gestion_anterior, 2) }} |
|
|
| INGRESOS DE GESTIÓN |
CORRIENTE |
ANTERIOR |
@foreach ($ingresos_gestion as $ingreso_nombre => $cuentas)
@php
$total_ing_saldo_actual = $cuentas->sum('saldo_corriente');
$total_ing_saldo_anterior = $cuentas->sum('saldo_anterior');
@endphp
| {{ $cuentas->first()->padre_nombre }} |
${{ number_format($total_ing_saldo_actual) }} |
${{ number_format($total_ing_saldo_anterior) }} |
@foreach ($cuentas as $cuenta)
| {{ $cuenta->nombre }} |
${{ number_format($cuenta->saldo_corriente, 2) }} |
${{ number_format($cuenta->saldo_anterior, 2) }} |
@endforeach
|
@endforeach
| SUBTOTAL |
${{ number_format($total_ingresos_act, 2) }} |
${{ number_format($total_ingresos_ant, 2) }} |
| TOTAL OBLIGACIONES |
${{ number_format($total_ingresos_act, 2) }} |
${{ number_format($total_ingresos_ant, 2) }} |
|