@extends('backEnd.master') @section('title') @lang('academics.class_routine') @endsection @section('mainContent')

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'class-routine-report-search', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }}
@if ($errors->has('class')) {{ @$errors->first('class') }} @endif
@if ($errors->has('section')) {{ @$errors->first('section') }} @endif
{{ Form::close() }}
@if(isset($class_routines))

@lang('academics.class_routine')

@foreach($class_routines as $class_routine) @php $teacher_id = App\SmClassRoutine::teacherId(@$class_routine->class_id, @$class_routine->section_id, @$class_routine->subject_id); if($teacher_id != ""){ @$teacher = @$teacher_id->teacher->full_name; }else{ $teacher = ""; } @endphp @endforeach
@lang('common.subject') @lang('common.teacher') @lang('common.monday') @lang('common.tuesday') @lang('common.wednesday') @lang('common.thursday') @lang('common.friday') @lang('common.Saturday') @lang('common.sunday')
{{@$class_routine->subject !=""? @$class_routine->subject->subject_name:""}} {{@$teacher}} @if(@$class_routine->monday_start_from != "") {{@$class_routine->monday_start_from .'-'. @$class_routine->monday_end_to}}
@lang('lang.room_number'): {{@$class_routine->monday_room_id}}
@else {{"@lang('lang.not_scheduled')"}} @endif
@if(@$class_routine->tuesday_start_from != "") {{@$class_routine->tuesday_start_from .'-'. @$class_routine->tuesday_end_to}}
@lang('lang.room_number'): {{@$class_routine->tuesday_room_id}}
@else {{"@lang('lang.not_scheduled')"}} @endif
@if(@$class_routine->wednesday_start_from != "") {{@$class_routine->wednesday_start_from .'-'. @$class_routine->wednesday_end_to}}
@lang('lang.room_number'): {{@$class_routine->wednesday_room_id}}
@else {{"@lang('lang.not_scheduled')"}} @endif
@if(@$class_routine->thursday_start_from != "") {{@$class_routine->thursday_start_from .'-'. @$class_routine->thursday_end_to}}
@lang('lang.room_number'): {{@$class_routine->thursday_room_id}}
@else {{"@lang('lang.not_scheduled')"}} @endif
@if(@$class_routine->friday_start_from != "") {{@$class_routine->friday_start_from .'-'. @$class_routine->friday_end_to}}
@lang('lang.room_number'): {{@$class_routine->friday_room_id}}
@else {{"@lang('lang.not_scheduled')"}} @endif
@if(@$class_routine->saturday_start_from != "") {{@$class_routine->saturday_start_from .'-'. @$class_routine->saturday_end_to}}
@lang('lang.room_number'): {{@$class_routine->saturday_room_id}}
@else {{"@lang('lang.not_scheduled')"}} @endif
@if(@$class_routine->sunday_start_from != "") {{@$class_routine->sunday_start_from .'-'. @$class_routine->sunday_end_to}}
@lang('lang.room_number'): {{@$class_routine->sunday_room_id}}
@else {{"@lang('lang.not_scheduled')"}} @endif
@endif @endsection @include('backEnd.partials.data_table_js')