@extends('layouts.app') @section('title', 'Profesores | Gerencia Docente') @section('content')

Profesores

@auth
@endauth
@if ($errors->any())
@endif
@foreach ($semesters as $semester) @endforeach @foreach ($professors as $professor) @foreach ($semesters as $semester) @endforeach @endforeach
Profesor Carga Total
{{ $semester->alpha }}
{{ $professor->last_name . ', ' . $professor->first_name }} @php $total_load = 0; $prof_sem = $professor->semesters->find($semester->code); $prof_sections = $professor->sections->where('semester_code', '=', $semester->code); if ($prof_sem) { $total_load += ($prof_sem->pivot->admin_load ?? 0) + ($prof_sem->pivot->investigative_load ?? 0); } $total_load += $professor->getAcademicLoad($semester); @endphp {{ $total_load }}
@endsection @section('modals') @include('modal.professor.create') @include('modal.professor.edit') @endsection @section('scripts') @endsection