@extends('backend.layouts.app') @section('title', __('labels.backend.tests.title') . ' | ' . app_name()) @push('after-styles') @endpush @section('content') {!! Form::open(['method' => 'POST', 'route' => ['admin.forms.store'],'files' => true]) !!}

@lang('labels.backend.tests.create')

{!! Form::label('course_id', trans('labels.backend.tests.fields.course'), ['class' => 'control-label']) !!}
{!! Form::label('chapter_id', trans('labels.backend.lessons.fields.test_chapter'), ['class' => 'control-label']) !!} {!! Form::select('chapter_id', $chapters, old('chapter_id'), ['class' => 'form-control select2']) !!}
{!! Form::label('course_location_label', trans('labels.backend.courses.fields.location').'*', ['class' => 'control-label']) !!} {{-- {!! Form::select('course_location_id[]', $courseLocations,'', ['class' => 'form-control select2 col-12 col-lg-12 js-example-placeholder-multiple', 'multiple' => 'multiple','required'=>true]) !!}--}}
{!! Form::label('title', trans('labels.backend.tests.fields.title'), ['class' => 'control-label']) !!} {!! Form::text('title', old('title'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.tests.fields.title')]) !!}
{!! Form::label('title', trans('labels.backend.tests.fields.title_ar'), ['class' => 'control-label']) !!} {!! Form::text('title_ar', old('title_ar'), ['class' => 'form-control', 'placeholder' => trans('labels.backend.tests.fields.title_ar')]) !!}
{!! Form::label('downloadable_files', trans('labels.backend.lessons.fields.downloadable_files').' '.trans('labels.backend.lessons.max_file_size'), ['class' => 'control-label']) !!} {!! Form::file('downloadable_files[]', [ 'multiple', 'class' => 'form-control file-upload', 'id' => 'downloadable_files', 'accept' => "image/jpeg,image/gif,image/png,application/msword,audio/mpeg,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.ms-powerpoint,application/pdf,video/mp4" ]) !!}
{{--
{!! Form::label('description',trans('labels.backend.tests.fields.description'), ['class' => 'control-label']) !!} {!! Form::textarea('description', old('description'), ['class' => 'form-control ', 'placeholder' => trans('labels.backend.tests.fields.description')]) !!}
{!! Form::label('description',trans('labels.backend.tests.fields.description_ar'), ['class' => 'control-label']) !!} {!! Form::textarea('description_ar', old('description_ar'), ['class' => 'form-control ', 'placeholder' => trans('labels.backend.tests.fields.description_ar')]) !!}
--}}
{!! Form::hidden('published', 0) !!} {!! Form::checkbox('published', 1, false, []) !!} {!! Form::label('published', trans('labels.backend.tests.fields.published'), ['class' => 'control-label font-weight-bold']) !!}
{!! Form::submit(trans('strings.backend.general.app_save'), ['class' => 'btn btn-danger']) !!} {!! Form::close() !!} @stop @push('after-scripts') @endpush