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

@lang('homework.add_homework')

@if (moduleStatusCheck('University'))
@includeIf( 'university::common.session_faculty_depart_academic_semester_level', ['subject' => true, 'dept_mt' => 'mt-0'] )
@else
@if ($errors->has('class_id')) {{ $errors->first('class_id') }} @endif
loader
@if ($errors->has('subject_id')) {{ $errors->first('subject_id') }} @endif
@if ($errors->has('section_id')) {{ $errors->first('section_id') }} @endif
@endif
{{ $errors->first('homework_date') }}
{{ $errors->first('submission_date') }}
@if ($errors->has('marks')) {{ $errors->first('marks') }} @endif
@if ($errors->has('homework_file')) {{ $errors->first('homework_file') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@php $tooltip = ''; if (userPermission('saveHomeworkData')) { $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp
{{ Form::close() }}
@endsection @include('backEnd.partials.multi_select_js') @include('backEnd.partials.date_picker_css_js')