@extends('layouts.app') @section('title', $professor->full_name) @section('content')

{{ $professor->full_name }}


Email: {{ $professor->email ?? 'n/a' }}

Semestres

@foreach ($semesters as $semester) @php $semester_sections = $sections->get($semester->code); $semester_loads = $loads->get($semester->code); @endphp @if ($semester_sections || ($semester_loads && (is_numeric($semester_loads->pivot->investigative_load) || is_numeric($semester_loads->pivot->investigative_load))))

{{ $semester->alpha }}

@php $academic_load = $professor->getAcademicLoad($semester); @endphp @if ($semester_sections) @foreach ($semester_sections as $section) @endforeach @endif @if (Auth::check() || $semester_loads && is_numeric($semester_loads->pivot->admin_load)) @auth @endauth @endif @if (Auth::check() || $semester_loads && is_numeric($semester_loads->pivot->investigative_load)) @auth @endauth @endif @if ($semester_sections || $semester_loads) @endif
Curso Sección Horario Evaluación # de Estudiantes Créditos
{{ $section->course->code }} {{ $section->code }} {{ $section->schedule ?: 'n/a'}} {{ $section->eval ?? 'n/a' }} {{ $section->student_count ?? 'n/a' }} {{ $section->credits ?? 'n/a' }}
Carga Academica {{ $academic_load }}
Carga Administrativa {{ $semester_loads ? $semester_loads->pivot->admin_load : 'n/a' }}
Carga Investigativa {{ $semester_loads ? $semester_loads->pivot->investigative_load : 'n/a' }}
Carga Total {{ $academic_load + ($semester_loads->pivot->admin_load ?? 0) + ($semester_loads->pivot->investigative_load ?? 0) }}
@if (!$loop->last)
@endif @endif @endforeach
@endsection @section('modals') @include('modal.professor.edit') @include('modal.professor.loads') {{-- @include('modal.semesterload') --}} @endsection @section('scripts') @endsection