@php $height = 0; $tr = []; @endphp @foreach ($sm_weekends as $sm_weekend) @if ($sm_weekend->classRoutine->count() > $height) @php $height = $sm_weekend->classRoutine->count(); @endphp @endif | {{ @$sm_weekend->name }} | @endforeach
---|---|
@lang('common.time') | @foreach ($tr as $days) @foreach ($sm_weekends as $sm_weekend)@php $classes = gv($days, $sm_weekend->name); @endphp @if ($classes && gv($classes, $i)) {{ date('h:i A', strtotime(@$classes[$i]['start_time'])) }} - {{ date('h:i A', strtotime(@$classes[$i]['end_time'])) }} @endif | @endforeach @endforeach
@lang('common.details') | @foreach ($tr as $days) @foreach ($sm_weekends as $sm_weekend)
@php
$classes = gv($days, $sm_weekend->name);
@endphp
@if ($classes && gv($classes, $i))
@if ($classes[$i]['is_break'])
@lang('common.break')
@else
@if ($classes[$i]['subject'])
{{ $classes[$i]['subject'] }}
@if ($classes[$i]['class_room'])
({{ $classes[$i]['class_room'] }})
@endif @endif @if ($classes[$i]['teacher']) {{ $classes[$i]['teacher'] }} @endif @endif @endif |
@endforeach
@endforeach
@lang('reports.date_&_day') | @lang('common.subject') | @lang('common.class_Sec') | @lang('common.teacher') | @lang('common.time') | @lang('common.duration') | @lang('common.room') |
---|---|---|---|---|---|---|
{{ dateConvert($exam_routine->date) }}
{{ Carbon::createFromFormat('Y-m-d', $exam_routine->date)->format('l') }} |
{{ $exam_routine->subject ? $exam_routine->subject->subject_name : '' }} {{ $exam_routine->subject ? '(' . $exam_routine->subject->subject_code . ')' : '' }} | {{ $exam_routine->class ? $exam_routine->class->class_name : '' }} {{ $exam_routine->section ? '(' . $exam_routine->section->section_name . ')' : '' }} | {{ $exam_routine->teacher ? $exam_routine->teacher->full_name : '' }} | {{ date('h:i A', strtotime(@$exam_routine->start_time)) }} - {{ date('h:i A', strtotime(@$exam_routine->end_time)) }} | @php $duration = strtotime($exam_routine->end_time) - strtotime($exam_routine->start_time); @endphp {{ timeCalculation($duration) }} | {{ $exam_routine->classRoom ? $exam_routine->classRoom->room_no : '' }} |