@extends('reportes.layouts.pdf-base') @section('estilos-adicionales') @endsection @section('contenido') {{-- ESTADÍSTICAS PRINCIPALES --}}
{{ $poas->count() }} Total POAs
Bs. {{ number_format($estadisticas['presupuesto_total'] / 1000000, 1) }}M Presupuesto
Bs. {{ number_format($estadisticas['ejecutado_total'] / 1000000, 1) }}M Ejecutado
{{ $estadisticas['porcentaje_ejecucion'] }}% % Ejecución
{{-- TABLA DE POAs --}} @forelse($poas as $index => $poa) @php $porcentaje = $poa->presupuesto_inicial > 0 ? round(($poa->ejecutado / $poa->presupuesto_inicial) * 100, 2) : 0; $clase = match (true) { $porcentaje >= 80 => 'background: #e8f5e9;', $porcentaje >= 50 => 'background: #fff9c4;', default => 'background: #ffebee;', }; @endphp @empty @endforelse @if ($poas->count() > 0) @endif
Unidad Educativa Gestión Cant. Presupuesto Ejecutado % Ejec.
{{ $index + 1 }} {{ $poa->unidadEducativa->nombre ?? 'N/A' }} {{ $poa->gestion }} {{ $poa->cantidad ?? 0 }} Bs. {{ number_format($poa->presupuesto_inicial, 2) }} Bs. {{ number_format($poa->ejecutado, 2) }} {{ $porcentaje }}%
No se encontraron POAs activos
TOTALES: Bs. {{ number_format($estadisticas['presupuesto_total'], 2) }} Bs. {{ number_format($estadisticas['ejecutado_total'], 2) }} {{ $estadisticas['porcentaje_ejecucion'] }}%
{{-- RESUMEN FINANCIERO --}} @if ($poas->count() > 0)
RESUMEN: POAs Activos: {{ $poas->count() }} | Saldo Disponible: Bs. {{ number_format($estadisticas['saldo_total'], 2) }} @if (!empty($gestion)) | Gestión: {{ $gestion }} @endif
@endif @endsection @section('footer-extra') Reporte General de POAs @endsection