@extends('backEnd.master') @section('title') @lang('lang.lesson') @endsection @section('mainContent') @section('script') @stop
@if(isset($lesson)) @if(userPermission(802)) @endif @endif @if(isset($lesson)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => array('exam-update',$lesson->id), 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @else @if(userPermission(802)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'lesson.storelesson', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif

@if(isset($data)) @lang('lang.edit') @else @lang('lang.add') @endif @lang('lang.lesson')

@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('subject')) {{ $errors->first('subject') }} @endif
@lang('lang.add') @lang('lang.lesson') @lang('lang.name')
@php $tooltip = ""; if(userPermission(802)){ $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