| Institución | Departamento | Plan | Ejes Estratégicos | Objetivos | Inicio | Fin | Responsable | Acciones |
|---|---|---|---|---|---|---|---|---|
| {{ $plan->departamento->institucion->nombre_institucion }} | {{ $plan->departamento->departamento }} | {{ $plan->nombre_plan_estrategico }} |
@php
$ejes = [];
if ($plan->ejes_estrategicos) {
$decodificado = json_decode($plan->ejes_estrategicos, true);
if (is_array($decodificado)) {
$ejes = array_filter($decodificado);
} else {
$ejes = array_map('trim', explode(',', $plan->ejes_estrategicos));
}
}
@endphp
@if (!empty($ejes))
{{ implode("\n", array_map(fn($eje, $i) => $i + 1 . '. ' . str_replace("\n", ' ', $eje), $ejes, array_keys($ejes))) }}
@else
Sin ejes estratégicos
@endif
@if (!empty($ejes))
@endif
|
@php
$objetivos = [];
if ($plan->objetivos) {
$objetivos = json_decode($plan->objetivos, true);
$objetivos = array_filter($objetivos);
}
@endphp
@if (!empty($objetivos))
{{ '• ' . implode("\n• ", $objetivos) }}
@else
Sin objetivos
@endif
@if (!empty($objetivos))
@endif
|
{{ \Carbon\Carbon::parse($plan->fecha_inicio)->format('d-m-Y') }} | {{ \Carbon\Carbon::parse($plan->fecha_fin)->format('d-m-Y') }} | {{ $plan->responsable->nombre_usuario ?? '—' }} |