65 lines
2.6 KiB
PHP
65 lines
2.6 KiB
PHP
<div class="row">
|
|
<div class="col">
|
|
<fieldset class="mb-3 border p-3">
|
|
<div class="row mb-3">
|
|
<!-- QUESTION -->
|
|
<div class="col-12 col-md-6 form-group">
|
|
<label class="col-form-label" for="faq-question"><b>{{ Str::ucfirst(__('validation.custom.attributes.question')) }}</b></label>
|
|
<div class="word-counter" data-json='@json(['for' => 'faq-question'])'></div>
|
|
<input class="form-control" id="faq-question" name="question" type="text" value="{{ old('question', $faq->question ?? '') }}"
|
|
aria-describedby="faq-question-help" placeholder="{{ Str::ucfirst(__('validation.custom.attributes.question')) }}" required>
|
|
@include('bo.modules.input-error', [
|
|
'inputName' => 'question',
|
|
'helperId' => 'faq-question-help',
|
|
'helper' =>
|
|
__('Give your faq a title.') .
|
|
' ' .
|
|
__('validation.between.string', [
|
|
'attribute' => __(':field :inter:model', [
|
|
'field' => __('validation.attributes.question'),
|
|
'inter' => __('validation.custom.of_the.female'),
|
|
'model' => trans_choice('models.classes.faqs', 1),
|
|
]),
|
|
'min' => 4,
|
|
'max' => 75,
|
|
]),
|
|
])
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<fieldset class="mb-3 border p-3">
|
|
<legend><label class="h4" for="answer-text">{{ Str::ucfirst(__('validation.custom.attributes.answer')) }}</label></legend>
|
|
<div class="row">
|
|
<div class="col form-group">
|
|
@include('bo.modules.input-error', [
|
|
'inputName' => 'answer',
|
|
'helper' =>
|
|
__('The answer') .
|
|
' ' .
|
|
__('validation.min.string', [
|
|
'attribute' => __(':field :inter:model', [
|
|
'field' => __('validation.custom.attributes.answer'),
|
|
'inter' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.faqs', 1),
|
|
]),
|
|
'min' => 4,
|
|
]),
|
|
])
|
|
@php
|
|
$editor = [
|
|
'id' => 'answer-text',
|
|
'csrf' => csrf_token(),
|
|
'name' => 'answer',
|
|
'text' => old('answer', $faq->answer ?? '') ?? '',
|
|
];
|
|
@endphp
|
|
<div class="ck-editor" data-json='@json($editor)'></div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|