@php $tipoProgramaMap = [ 0 => 'No Ingresado', 1 => 'Pregrado', 2 => 'Postgrado', 3 => 'Postítulo', 4 => 'Diplomado', 5 => 'Curso', 6 => 'Especialidad Médica', ]; @endphp @foreach ($resultados as $row) {{ $row['PLAN_COD'] }} {{ $row['PLAN_NOM_CORTO'] }} {{ $tipoProgramaMap[$row['PLAN_TIPO_PROG']] ?? 'No definido' }} {{ is_numeric($row['PLAN_COD']) ? 'Plan de Estudio' : 'Programa' }} @endforeach