@php $routine_page_title="All about Infix School management system; School management software"; @endphp @extends('frontEnd.home.front_master') @push('css') @endpush @section('main_content') @if ($routine_page)
@endif
@csrf
@if ($errors->has('type')) {{ $errors->first('type') }} @endif
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
loader
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@if (isset($sm_weekends))

@lang('reports.class_routine')- {{ $header_class->class_name }}({{ $header_section->section_name }})

@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 @endforeach @php $used = []; $tr = []; @endphp @foreach ($sm_weekends as $sm_weekend) @php $i = 0; @endphp @foreach ($sm_weekend->classRoutine as $routine) @php if (!in_array($routine->id, $used)) { $tr[$i][$sm_weekend->name][$loop->index]['subject'] = $routine->subject ? $routine->subject->subject_name : ''; $tr[$i][$sm_weekend->name][$loop->index]['subject_code'] = $routine->subject ? $routine->subject->subject_code : ''; $tr[$i][$sm_weekend->name][$loop->index]['class_room'] = $routine->classRoom ? $routine->classRoom->room_no : ''; $tr[$i][$sm_weekend->name][$loop->index]['teacher'] = $routine->teacherDetail ? $routine->teacherDetail->full_name : ''; $tr[$i][$sm_weekend->name][$loop->index]['start_time'] = $routine->start_time; $tr[$i][$sm_weekend->name][$loop->index]['end_time'] = $routine->end_time; $tr[$i][$sm_weekend->name][$loop->index]['is_break'] = $routine->is_break; $used[] = $routine->id; } @endphp @endforeach @php $i++; @endphp @endforeach @for ($i = 0; $i < $height; $i++) @foreach ($tr as $days) @foreach ($sm_weekends as $sm_weekend) @endforeach @endforeach @foreach ($tr as $days) @foreach ($sm_weekends as $sm_weekend) @endforeach @endforeach @endfor
{{ @$sm_weekend->name }}
@lang('common.time') @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
@lang('common.details') @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
@endif @if (isset($exam_schedules))

@lang('reports.exam_routine')- {{ $header_class->class_name }}({{ $header_section->section_name }})

@foreach ($exam_schedules as $date => $exam_routine) @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 : '' }}
@endif @endsection @section('script') {!! Toastr::message() !!} @endsection