@extends('backEnd.master') @section('title') @lang('lang.edit') @lang('lang.lesson') @endsection @section('mainContent')
@if(isset($lesson)) @if(userPermission(803)) @endif @endif {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'lesson-update', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}

@lang('lang.edit') @lang('lang.lesson')

@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@if ($errors->has('subject')) {{ $errors->first('subject') }} @endif
@lang('lang.add') @lang('lang.lesson') @lang('lang.name')
@foreach($lesson_detail as $lesson_item) @endforeach
@php $tooltip = ""; if(userPermission(803)){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('lang.lesson') @lang('lang.list')

@php $count =1 ; @endphp @foreach($lessons as $lesson) @endforeach
@lang('lang.sl') @lang('lang.class') @lang('lang.section') @lang('lang.subject') @lang('lang.lesson') @lang('lang.action')
{{$count++}} {{$lesson->class !=""?$lesson->class->class_name:""}} {{$lesson->section !=""?$lesson->section->section_name:""}} {{$lesson->subject !=""?$lesson->subject->subject_name:""}} @php $lesson_title=Modules\Lesson\Entities\SmLesson::lessonName($lesson->class_id,$lesson->section_id,$lesson->subject_id); @endphp @foreach($lesson_title as $data)
{{$data->lesson_title}},
@endforeach
@endsection