@include('admin/shared/input', [
'name' => 'title',
'label' => __('faq::messages.formulaire.title'),
'value' => old('title', $faq->title),
'translatable' => true,
])
@include('admin/shared/select', [
'name' => 'category_id',
'label' => __('faq::messages.formulaire.category'),
'options' => ['' => __('global.none')] + $categories,
'value' => old('category_id', $faq->category_id ?? ''),
'help' => __('faq::messages.formulaire.category_help'),
])
@include('admin/shared/select', [
'name' => 'group_id',
'label' => __('global.group'),
'options' => ['' => __('global.none')] + $groups,
'value' => old('group_id', $faq->group_id ?? ''),
'help' => __('faq::messages.formulaire.group_help'),
])
@include('admin/shared/select', [
'name' => 'product_id',
'label' => __('global.product'),
'options' => ['' => __('global.none')] + $products,
'value' => old('product_id', $faq->product_id ?? ''),
'help' => __('faq::messages.formulaire.product_help'),
])
@include('admin/shared/textarea', [
'name' => 'answer',
'label' => __('faq::messages.formulaire.answer'),
'value' => old('answer', isset($faq) ? $faq->trans('answer', $faq->answer ?? '') : ''),
'rows' => 12,
'translatable' => isset($faq),
])
@include('admin/shared/input', [
'type' => 'number',
'name' => 'sort_order',
'label' => __('global.sort_order'),
'value' => old('sort_order', $faq->order ?? 0),
])
{{-- Display Sections --}}
@if(!empty($availableSections))
@endif