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

@lang('lesson::lesson.edit_lesson')

@if (moduleStatusCheck('University'))
@includeIf('university::common.session_faculty_depart_academic_semester_level', [ 'row' => 1, 'div' => 'col-lg-12', 'mt' => 'mt-0', 'required' => [ 'USN', 'UD', 'UA', 'US', 'USL', 'USUB', 'disabled' => 'disabled', ], ])
@else
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@if ($errors->has('subject')) {{ $errors->first('subject') }} @endif
@endif
@foreach ($lesson_detail as $lesson_item) @endforeach
@php $tooltip = ''; if (userPermission("lesson.create-store")) { $tooltip = ''; }elseif(userPermission("lesson-edit") && isset($lesson)){ $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp
{{ Form::close() }}

@lang('lesson::lesson.lesson_list')

@if (moduleStatusCheck('University')) @else @endif @foreach ($lessons as $lesson) @if (moduleStatusCheck('University')) @else @endif @endforeach
@lang('common.sl')@lang('university::un.session') @lang('university::un.faculty') @lang('university::un.department') @lang('university::un.academic') @lang('university::un.semester') @lang('university::un.semester_label')@lang('common.class') @lang('common.section')@lang('lesson::lesson.subject') @lang('lesson::lesson.lesson') @lang('common.action')
{{ $loop->iteration }} {{ $lesson->unSession->name }} {{ $lesson->unFaculty->name }} {{ $lesson->unDepartment->name }} {{ $lesson->unAcademic->name }} {{ $lesson->unSemester->name }} {{ $lesson->unSemesterLabel->name }} {{ $lesson->unSubject->subject_name }}{{ $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 }} {{ !$loop->last ? ',' : '' }}
@endforeach
@if (userPermission("lesson-edit")) @if (moduleStatusCheck('University')) @if ($lesson->class_id == null) @lang('common.edit') @endif @else @if ($lesson->class_id != null) @lang('common.edit') @endif @endif @endif @if (userPermission("lesson-delete")) @lang('common.delete') @endif
{{-- delete modal --}} @endsection @include('backEnd.partials.data_table_js') @push('script') @endpush