@extends('backend.layouts.app') @section('title', __('labels.backend.tests.title').' | '.app_name()) @push('after-styles') @endpush @section('content') {!! Form::model($test, ['method' => 'PUT', 'route' => ['admin.tests.update', $test->id]]) !!}

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

{!! Form::label('course_id',trans('labels.backend.tests.fields.course'), ['class' => 'control-label']) !!} {!! Form::select('course_id', $courses, old('course_id'), ['class' => 'form-control select2']) !!}
{!! 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('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::hidden('published', 0) !!} {!! Form::checkbox('published', 1, old('published'), []) !!} {!! Form::label('published', trans('labels.backend.tests.fields.published'), ['class' => 'control-label font-weight-bold']) !!}
{!! Form::submit(trans('strings.backend.general.app_update'), ['class' => 'btn btn-danger']) !!} {!! Form::close() !!} @stop