@extends('student-panel.partials.master') @section('title') {{ ___('common.Class Routine') }} @endsection @section('content')
@if (@$data['result']) @if (@$data['result']->count() > 0)
{{___('common.PDF Download')}}

{{ ___('settings.class_routine') }}

@foreach ($data['time'] as $item) @endforeach @php $n = 0; @endphp @foreach (\Config::get('site.days') as $key=>$item) @if (isset($data['result'][$n])) @if ($data['result'][$n]->day == $key) @foreach ($data['time'] as $key=>$item) @php ++$key; @endphp @endforeach @php ++$n; @endphp @else @foreach ($data['time'] as $item) @endforeach @endif @else @foreach ($data['time'] as $item) @endforeach @endif @endforeach
Day/Time{{ $item->timeSchedule->start_time }} - {{ $item->timeSchedule->end_time }}
{{ ___($item) }} @foreach ($data['result'][$n]->classRoutineChildren as $item) @if ($item->time_schedule_id == $key)
{{ $item->subject->name }}

@foreach ($data['result'][$n]->TeacherName->subjectTeacher as $item2) @if ($item2->subject_id == $item->subject->id) {{$item2->teacher->first_name}} {{$item2->teacher->last_name}} @endif @endforeach

Room No: {{ $item->classRoom->room_no }}

@endif @endforeach
@else

{{ ___('settings.class_routine') }}

{{ ___('common.No data available') }}

{{ ___('common.Please add new entity regarding this table') }}

@endif @endif
@endsection