@extends('backEnd.master') @section('title') @lang('lang.lesson') @lang('lang.plan') @endsection @section('mainContent')
@if(isset($class_times))

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

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

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

< week {{$week_number}} | {{date('Y', strtotime($dates[0]))}} >

@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) @php $lesson_date=$dates[$j++]; @endphp @endforeach @endforeach
@lang('lang.class_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))}}
@if(@$class_time->is_break == 0) @if(@$sm_weekend->is_weekend != 1) @php @$assinged_class_routine = App\SmClassRoutineUpdate::assingedClassRoutine($class_time->id, $sm_weekend->id, $class_id, $section_id); @endphp @if(@$assinged_class_routine != "") {{@$assinged_class_routine->subject->subject_name}}
{{@$assinged_class_routine->classRoom->room_no}}
{{@$assinged_class_routine->teacherDetail->full_name}}
@php $lessonPlan=DB::table('lesson_planners') ->join('sm_lessons','sm_lessons.id','=','lesson_planners.lesson_detail_id') ->join('sm_lesson_topic_details','sm_lesson_topic_details.id','=','lesson_planners.topic_detail_id') ->where('lesson_date',$lesson_date) ->where('class_period_id',$class_time->id) ->select('lesson_planners.id','sm_lessons.lesson_title','sm_lesson_topic_details.topic_title') ->first(); @endphp @if($lessonPlan) Lesson : {{@$lessonPlan->lesson_title}}
Topic : {{@$lessonPlan->topic_title}}
@endif @endif @else @lang('lang.weekend') @endif @endif
@endif @endsection