RED NACIONAL DE HOSPITALES
ESTADO DE RENDIMIENTO ECONÓMICO
DEL: {{ $fecha_desde }} AL {{ $fecha_hasta }}
@foreach ($gastos_gestion as $gastos_nombre => $cuentas) @php $total_saldo_actual = $cuentas->sum('saldo_corriente'); $total_saldo_anterior = $cuentas->sum('saldo_anterior'); @endphp @foreach ($cuentas as $cuenta) @endforeach @endforeach @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
GASTOS DE GESTIÓN CORRIENTE ANTERIOR
{{ $cuentas->first()->padre_nombre }} $ {{ number_format($total_saldo_actual) }} $ {{ number_format($total_saldo_anterior) }}
{{ $cuenta->nombre }} ${{ number_format($cuenta->saldo_corriente, 2) }} ${{ number_format($cuenta->saldo_anterior, 2) }}
SUBTOTAL ${{ number_format($total_gastos_act, 2) }} ${{ number_format($total_gastos_ant, 2) }}
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) }}
@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 @foreach ($cuentas as $cuenta) @endforeach @endforeach
INGRESOS DE GESTIÓN CORRIENTE ANTERIOR
{{ $cuentas->first()->padre_nombre }} ${{ number_format($total_ing_saldo_actual) }} ${{ number_format($total_ing_saldo_anterior) }}
{{ $cuenta->nombre }} ${{ number_format($cuenta->saldo_corriente, 2) }} ${{ number_format($cuenta->saldo_anterior, 2) }}
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) }}