@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 --}}
| N° |
Unidad Educativa |
Gestión |
Cant. |
Presupuesto |
Ejecutado |
% Ejec. |
@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
| {{ $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 }}% |
@empty
|
No se encontraron POAs activos
|
@endforelse
@if ($poas->count() > 0)
| TOTALES: |
Bs. {{ number_format($estadisticas['presupuesto_total'], 2) }} |
Bs. {{ number_format($estadisticas['ejecutado_total'], 2) }} |
{{ $estadisticas['porcentaje_ejecucion'] }}% |
@endif
{{-- 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