{!! trans('labels.LbTitleQuizs6', ['name' => $item->name]) !!}
@csrf
@component('components.forms.input', [ 'name' => 'name', 'class' => 'quiz-name-error mb-3', 'required' => true, 'label' => trans('bdd.quizs.name.s'), 'value' => $item->name, 'type' => 'text', ]) @endcomponent
@component('components.forms.select', [ 'name' => 'category', 'required' => false, 'create' => true, 'label' => trans('bdd.quizs.category.s'), 'value' => strtolower($item->category), 'datas' => $categories, ]) @endcomponent
@if (!empty($item->questions) && count($item->questions))
@if (!in_array($item->status, config('constants.quizs_not_editable'))) @component('components.forms.radiochecks', [ 'name' => 'status', 'label' => trans('bdd.quizs.status.s'), 'type' => 'radio', 'required' => true, 'value' => $item->status, 'datas' => [ 0 => trans('bdd.quizs.status.enums.0.text'), 1 => trans('bdd.quizs.status.enums.1.text'), ], 'inline' => true, ]) @endcomponent @endif
@endif
@component('components.forms.submit', [ 'id' => $item->id, 'color' => 'primary', 'button' => trans('buttons.BtBasicSave'), ]) @endcomponent