@for ($i = 0; $i < sizeof($data); $i++)







Tepic, Nayarit; {{ $date }}

{{ $data[$i]["employee"] }}

CARGA HORARIA

Período: {{ is_int($period) ? $data[$i]["period_number"] : 'NO ESPECIFICADO'}}
Período escolar: {{ $data[$i]["school_period"] }}


@if(sizeof($data[$i]["subjects"]) > 0 || sizeof($data[$i]["type_subjects"]) > 0 || $data[$i]["tutorial"]) {{--filas de materia--}} @foreach($data[$i]["employee_subjects"] as $employee_subject) @endforeach {{--filas de complementarias--}} @foreach($data[$i]["type_subjects"] as $type_subject) @endforeach {{--fila de tutorias--}} @if($data[$i]["tutorial"]) @endif
Lunes Martes Miércoles Jueves Viernes Sábado
{{ $employee_subject->subject->description }} @foreach($data[$i]["subjects"] as $subject) @if($subject->id == $employee_subject->id && $subject->day == 1) {{ $subject->code }}
{{ $subject->start_hh < 10 ? "0".$subject->start_hh : $subject->start_hh }} :{{ $subject->start_mm < 10 ? "0".$subject->start_mm : $subject->start_mm }}  -  {{ $subject->end_hh < 10 ? "0".$subject->end_hh : $subject->end_hh }} :{{ $subject->end_mm < 10 ? "0".$subject->end_mm : $subject->end_mm }}
@endif @endforeach
@foreach($data[$i]["subjects"] as $subject) @if($subject->id == $employee_subject->id && $subject->day == 2) {{ $subject->code }}
{{ $subject->start_hh < 10 ? "0".$subject->start_hh : $subject->start_hh }} :{{ $subject->start_mm < 10 ? "0".$subject->start_mm : $subject->start_mm }}  -  {{ $subject->end_hh < 10 ? "0".$subject->end_hh : $subject->end_hh }} :{{ $subject->end_mm < 10 ? "0".$subject->end_mm : $subject->end_mm }}
@endif @endforeach
@foreach($data[$i]["subjects"] as $subject) @if($subject->id == $employee_subject->id && $subject->day == 3) {{ $subject->code }}
{{ $subject->start_hh < 10 ? "0".$subject->start_hh : $subject->start_hh }} :{{ $subject->start_mm < 10 ? "0".$subject->start_mm : $subject->start_mm }}  -  {{ $subject->end_hh < 10 ? "0".$subject->end_hh : $subject->end_hh }} :{{ $subject->end_mm < 10 ? "0".$subject->end_mm : $subject->end_mm }}
@endif @endforeach
@foreach($data[$i]["subjects"] as $subject) @if($subject->id == $employee_subject->id && $subject->day == 4) {{ $subject->code }}
{{ $subject->start_hh < 10 ? "0".$subject->start_hh : $subject->start_hh }} :{{ $subject->start_mm < 10 ? "0".$subject->start_mm : $subject->start_mm }}  -  {{ $subject->end_hh < 10 ? "0".$subject->end_hh : $subject->end_hh }} :{{ $subject->end_mm < 10 ? "0".$subject->end_mm : $subject->end_mm }}
@endif @endforeach
@foreach($data[$i]["subjects"] as $subject) @if($subject->id == $employee_subject->id && $subject->day == 5) {{ $subject->code }}
{{ $subject->start_hh < 10 ? "0".$subject->start_hh : $subject->start_hh }} :{{ $subject->start_mm < 10 ? "0".$subject->start_mm : $subject->start_mm }}  -  {{ $subject->end_hh < 10 ? "0".$subject->end_hh : $subject->end_hh }} :{{ $subject->end_mm < 10 ? "0".$subject->end_mm : $subject->end_mm }}
@endif @endforeach
@foreach($data[$i]["subjects"] as $subject) @if($subject->id == $employee_subject->id && $subject->day == 6) {{ $subject->code }}
{{ $subject->start_hh < 10 ? "0".$subject->start_hh : $subject->start_hh }} :{{ $subject->start_mm < 10 ? "0".$subject->start_mm : $subject->start_mm }}  -  {{ $subject->end_hh < 10 ? "0".$subject->end_hh : $subject->end_hh }} :{{ $subject->end_mm < 10 ? "0".$subject->end_mm : $subject->end_mm }}
@endif @endforeach
{{ $type_subject->typeSubject->description }} @foreach($data[$i]["complements"] as $complement) @if($complement->id == $type_subject->id && $complement->day == 1) {{ $complement->start_hh < 10 ? "0".$complement->start_hh : $complement->start_hh }} :{{ $complement->start_mm < 10 ? "0".$complement->start_mm : $complement->start_mm }}  -  {{ $complement->end_hh < 10 ? "0".$complement->end_hh : $complement->end_hh }} :{{ $complement->end_mm < 10 ? "0".$complement->end_mm : $complement->end_mm }}
@endif @endforeach
@foreach($data[$i]["complements"] as $complement) @if($complement->id == $type_subject->id && $complement->day == 2) {{ $complement->start_hh < 10 ? "0".$complement->start_hh : $complement->start_hh }} :{{ $complement->start_mm < 10 ? "0".$complement->start_mm : $complement->start_mm }}  -  {{ $complement->end_hh < 10 ? "0".$complement->end_hh : $complement->end_hh }} :{{ $complement->end_mm < 10 ? "0".$complement->end_mm : $complement->end_mm }}
@endif @endforeach
@foreach($data[$i]["complements"] as $complement) @if($complement->id == $type_subject->id && $complement->day == 3) {{ $complement->start_hh < 10 ? "0".$complement->start_hh : $complement->start_hh }} :{{ $complement->start_mm < 10 ? "0".$complement->start_mm : $complement->start_mm }}  -  {{ $complement->end_hh < 10 ? "0".$complement->end_hh : $complement->end_hh }} :{{ $complement->end_mm < 10 ? "0".$complement->end_mm : $complement->end_mm }}
@endif @endforeach
@foreach($data[$i]["complements"] as $complement) @if($complement->id == $type_subject->id && $complement->day == 4) {{ $complement->start_hh < 10 ? "0".$complement->start_hh : $complement->start_hh }} :{{ $complement->start_mm < 10 ? "0".$complement->start_mm : $complement->start_mm }}  -  {{ $complement->end_hh < 10 ? "0".$complement->end_hh : $complement->end_hh }} :{{ $complement->end_mm < 10 ? "0".$complement->end_mm : $complement->end_mm }}
@endif @endforeach
@foreach($data[$i]["complements"] as $complement) @if($complement->id == $type_subject->id && $complement->day == 5) {{ $complement->start_hh < 10 ? "0".$complement->start_hh : $complement->start_hh }} :{{ $complement->start_mm < 10 ? "0".$complement->start_mm : $complement->start_mm }}  -  {{ $complement->end_hh < 10 ? "0".$complement->end_hh : $complement->end_hh }} :{{ $complement->end_mm < 10 ? "0".$complement->end_mm : $complement->end_mm }}
@endif @endforeach
@foreach($data[$i]["complements"] as $complement) @if($complement->id == $type_subject->id && $complement->day == 6) {{ $complement->start_hh < 10 ? "0".$complement->start_hh : $complement->start_hh }} :{{ $complement->start_mm < 10 ? "0".$complement->start_mm : $complement->start_mm }}  -  {{ $complement->end_hh < 10 ? "0".$complement->end_hh : $complement->end_hh }} :{{ $complement->end_mm < 10 ? "0".$complement->end_mm : $complement->end_mm }}
@endif @endforeach
TUTORIAS @if($data[$i]["tutorial"]->day == 1) {{ $data[$i]["tutorial"]->group->code }}
{{ $data[$i]["start_tutorial"] }}  -  {{ $data[$i]["end_tutorial"] }} @endif
@if($data[$i]["tutorial"]->day == 2) {{ $data[$i]["tutorial"]->group->code }}
{{ $data[$i]["start_tutorial"] }}  -  {{ $data[$i]["end_tutorial"] }} @endif
@if($data[$i]["tutorial"]->day == 3) {{ $data[$i]["tutorial"]->group->code }}
{{ $data[$i]["start_tutorial"] }}  -  {{ $data[$i]["end_tutorial"] }} @endif
@if($data[$i]["tutorial"]->day == 4) {{ $data[$i]["tutorial"]->group->code }}
{{ $data[$i]["start_tutorial"] }}  -  {{ $data[$i]["end_tutorial"] }} @endif
@if($data[$i]["tutorial"]->day == 5) {{ $data[$i]["tutorial"]->group->code }}
{{ $data[$i]["start_tutorial"] }}  -  {{ $data[$i]["end_tutorial"] }} @endif
@if($data[$i]["tutorial"]->day == 6) {{ $data[$i]["tutorial"]->group->code }}
{{ $data[$i]["start_tutorial"] }}  -  {{ $data[$i]["end_tutorial"] }} @endif
@endif
@if(!sizeof($data[$i]["subjects"]) > 0)
@endif @if(!sizeof($data[$i]["type_subjects"]) > 0)
@endif @if(!$data[$i]["tutorial"])
@endif

ATENTAMENTE




______________________________________

 

 

AUTORIZA




______________________________________

 

 


@if($i < (sizeof($data) - 1))
@endif @endfor