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

@if(isset($topic)) @lang('lesson::lesson.edit_topic') @else @lang('lesson::lesson.update_topic') @endif

@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@if ($errors->has('subject')) {{ $errors->first('subject') }} @endif
@if ($errors->has('lesson')) {{ $errors->first('lesson') }} @endif
@foreach($topicDetails as $topicData) @endforeach
@php $tooltip = ""; if(userPermission("topic-edit")){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}
@if(isset($topicDetails)) @if(userPermission('lesson.topic.store')) @endif @endif

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

@lang('common.sl') @lang('common.class') @lang('common.section') @lang('lesson::lesson.subject') @lang('lesson::lesson.lesson') @lang('lesson::lesson.topic') @lang('common.action')
{{-- delete topic here --}} {{-- delete topic modal --}} @endsection @push('script') @endpush @include('backEnd.partials.data_table_js') @include('backEnd.partials.server_side_datatable') @push('script') @endpush