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

@if(isset($editData)) @lang('exam.edit_exam_format') @else @lang('exam.add_exam_format') @endif

{{ __('exam.exam_settings_tips') }}

@php $format_for = old('format_for') ?? (!isset($editData) || @$editData->exam_type ? 'term_exam' : 'progress_card') ; @endphp @if ($errors->has('format_for')) {{ $errors->first('format_for') }} @endif
@if ($errors->has('exam_type')) {{ $errors->first('exam_type') }} @endif
@if ($errors->has('title')) {{ $errors->first('title') }} @endif
file):trans('exam.signature')}}" readonly>
@if ($errors->has('file')) {{ $errors->first('file') }} @endif (Allow file jpg, png, jpeg, svg)
{{$errors->first('date_of_birth')}}

@lang('exam.attendance')

{{$errors->first('start_date')}}
{{$errors->first('end_date')}}
@php $tooltip = ""; if(userPermission('save-exam-content') || userPermission('edit-exam-settings')){ @$tooltip = ""; }else{ @$tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('exam.exam_format_list')

@foreach($content_infos as $content_info) @endforeach
@lang('exam.exam') @lang('exam.title') @lang('exam.signature') @lang('exam.publish_date') @lang('exam.start_date') @lang('exam.end_date') @lang('common.action')
{{@$content_info->examName->title ?? __('exam.progress_card')}} {{$content_info->title}} @if ($content_info->file) @endif {{dateConvert($content_info->publish_date)}} {{$content_info->start_date ? dateConvert($content_info->start_date) : null}} {{$content_info->end_date ? dateConvert($content_info->end_date) : null}} @if(userPermission('edit-exam-settings')) @lang('common.edit') @endif @if(userPermission('delete-content')) @lang('common.delete') @endif
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_picker_css_js') @push('scripts') @endpush