94 lines
4.8 KiB
PHP
94 lines
4.8 KiB
PHP
<div class="row">
|
|
<div class="col-12 pb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ str(__('validation.attributes.image'))->ucFirst() }}</legend>
|
|
<div class="row mb-3">
|
|
{{-- PICTURE_ALT --}}
|
|
<div class="col-12 col-lg-6 m-md-0 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'hotNewsPictureAlt',
|
|
'label' => __(':field1 :inter1:field2 :model', [
|
|
'field1' => str(__('validation.custom.attribute_alt'))->ucFirst(),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'model' => __('models.classes.hot_news'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_alt',
|
|
'required' => true,
|
|
'model' => json_decode(collect($generalSettingModel->value)) ?? null,
|
|
'helper' => __('crud.minicrud.picture_alt_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :model', [
|
|
'field1' => str(__('validation.custom.attribute_alt'))->ucFirst(),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'model' => __('models.classes.hot_news'),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE_TITLE --}}
|
|
<div class="col-12 col-lg-6 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'hotNewsPictureTitle',
|
|
'label' => __(':field1 :inter1:field2 :model', [
|
|
'field1' => str(__('validation.custom.attribute_title'))->ucFirst(),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'model' => __('models.classes.hot_news'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_title',
|
|
'required' => true,
|
|
'model' => json_decode(collect($generalSettingModel->value)) ?? null,
|
|
'helper' => __('crud.minicrud.picture_title_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :model', [
|
|
'field1' => str(__('validation.custom.attribute_title'))->ucFirst(),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'model' => __('models.classes.hot_news'),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE --}}
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar-picture', [
|
|
'id' => 'hotNewsPicture',
|
|
'name' => 'picture',
|
|
'width' => 500,
|
|
'height' => 281,
|
|
'value' => json_decode(collect($generalSettingModel->value))->picture,
|
|
'required' => true,
|
|
'preview' => true,
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
{{-- TEXT --}}
|
|
<div class="col-12 mb-3">
|
|
<fieldset class="border p-3">
|
|
<legend>{{ str(__('validation.attributes.text'))->ucFirst() }}</legend>
|
|
<div class="row mb-3">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.text-html', [
|
|
'id' => 'hotNewsText',
|
|
'label' => __(':field :inter:model', [
|
|
'field' => str(__('validation.attributes.text'))->ucFirst(),
|
|
'inter' => __('validation.custom.of_the.vowel'),
|
|
'model' => __('models.classes.hot_news'),
|
|
]),
|
|
'name' => 'text',
|
|
'model' => json_decode(collect($generalSettingModel->value)) ?? null,
|
|
'required' => true,
|
|
'helper' => __('crud.minicrud.text_warning') .
|
|
' ' .
|
|
__('validation.min.string', [
|
|
'attribute' => __('validation.custom.preparation'),
|
|
'min' => 3,
|
|
]),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|