@extends('backEnd.master') @section('title') @lang('lang.lesson') @lang('lang.plan') @lang('lang.create') @endsection @section('mainContent')

@lang('lang.select_criteria')

@if(Auth::user()->role_id==1)
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'lesson-planner', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }}
@if ($errors->has('teacher')) {{ $errors->first('teacher') }} @endif
{{ Form::close() }}
@endif
@if(isset($class_times))

Warning: Undefined variable $dates in /var/www/html/repo/school-infix-v6.0/Modules/Lesson/Resources/views/teacher/teacherLessonPlan.blade.php on line 72

Warning: Trying to access array offset on value of type null in /var/www/html/repo/school-infix-v6.0/Modules/Lesson/Resources/views/teacher/teacherLessonPlan.blade.php on line 72

Warning: Undefined variable $this_week in /var/www/html/repo/school-infix-v6.0/Modules/Lesson/Resources/views/teacher/teacherLessonPlan.blade.php on line 76

< week {{$week_number}} >

@php $i=0; @endphp @foreach($sm_weekends as $sm_weekend) @endforeach @foreach($class_times as $class_time) @php $j=0; @endphp @foreach($sm_weekends as $sm_weekend) @endforeach @endforeach
@lang('lang.class') @lang('lang.period'){{@$sm_weekend->name}}
{{date('d-M-y', strtotime($dates[$i++]))}}
{{@$class_time->period}}
{{date('h:i A', strtotime(@$class_time->start_time)).' - '.date('h:i A', strtotime(@$class_time->end_time))}}
@php $lesson_date=$dates[$j++]; @endphp {{-- --}} @if(@$class_time->is_break == 0) @if(@$sm_weekend->is_weekend != 1) @php @$assinged_class_routine = App\SmClassRoutineUpdate::teacherAssingedClassRoutine(@$class_time->id, @$sm_weekend->id, $teacher_id); @endphp @if(@$assinged_class_routine == "") @lang('lang.n_a') @else @php $class_id=$assinged_class_routine->class_id; $section_id=$assinged_class_routine->section_id; @endphp {{@$assinged_class_routine->subject->subject_name}}
class: {{@$assinged_class_routine->class->class_name}}
section : {{@$assinged_class_routine->section->section_name}}
Room:{{@$assinged_class_routine->classRoom->room_no}}
@php $lessonPlan=DB::table('lesson_planners') ->where('lesson_date',$lesson_date)->first(); @endphp @if($lessonPlan) @else @endif @endif @else @lang('lang.weekend') @endif @endif
@endif @endsection