@extends('layouts.app') @section('title', 'Profesores | Gerencia Docente') @section('content')
Profesor | @foreach ($semesters as $semester)Carga Total {{ $semester->alpha }} |
@endforeach
---|---|
{{ $professor->last_name . ', ' . $professor->first_name }} | @foreach ($semesters as $semester)@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 }} | @endforeach