@extends('layouts.app') @section('title', $professor->full_name . ' | Gerencia Docente') @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->admin_load) || is_numeric($semester_loads->pivot->investigative_load || is_numeric($semester_loads->pivot->other)))))

{{ $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 (Auth::check() || $semester_loads && is_numeric($semester_loads->pivot->other)) @auth @endauth @endif @if ($semester_sections || $semester_loads) @endif
Curso Sección Lugar Horas Evaluación # de Estudiantes Créditos
{{ $section->course->code }} {{ $section->code }} @if ($section->schedules) @foreach ($section->schedules as $schedule) {{ $schedule->location }} @if (!$loop->last)
@endif @endforeach @else n/a @endif
@if ($section->schedules) @foreach ($section->schedules as $schedule) {{ $schedule->hours }} @if (!$loop->last)
@endif @endforeach @else n/a @endif
{{ $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' }}
Otras Cargas {{ $semester_loads ? $semester_loads->pivot->other : 'n/a' }}
Carga Total {{ $academic_load + ($semester_loads->pivot->admin_load ?? 0) + ($semester_loads->pivot->investigative_load ?? 0) + ($semester_loads->pivot->other ?? 0) }}
@if (!$loop->last)
@endif @endif @endforeach
@endsection @section('modals') @include('modal.professor.edit') @include('modal.professor.loads') @endsection @section('scripts') @endsection