ldc-volena/resources/views/bo/pages/sites/form.blade.php
2024-03-25 15:43:13 +01:00

834 lines
43 KiB
PHP

<div class="row">
{{-- SEO --}}
<div class="col-12 pb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.seo')) }}</legend>
<div class="row mb-3">
{{-- SEO_TITLE --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'siteSeoTitle',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.seo_title')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'seo_title',
'required' => true,
'model' => $siteModel ?? null,
'helper' => sprintf(
'%s %s',
__('validation.custom.seo_title'),
__('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => __('validation.custom.seo_title'),
'inter' => __('validation.custom.of_the.female'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 45,
'max' => 70,
])),
'placeholder' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.seo_title')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- SEO_DESCRIPTION --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar-multiline', [
'id' => 'siteSeoDescription',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.seo_description')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'seo_description',
'required' => true,
'model' => $siteModel ?? null,
'helper' => sprintf(
'%s %s',
__('crud.helpers.seo_description'),
__('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => __('validation.custom.seo_description'),
'inter' => __('validation.custom.of_the.female'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 50,
'max' => 160,
])),
'placeholder' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.seo_description')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
</div>
</fieldset>
</div>
{{-- NAME --}}
<div class="col-12 col-md-6 mb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.attributes.name')) }}</legend>
<div class="row">
<div class="col-12">
@include('bo.partials.inputs.varchar', [
'id' => 'siteName',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.attributes.name')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'name',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => __('validation.attributes.name'),
'inter' => __('validation.custom.of_the.female'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 3,
'max' => 100,
]),
'placeholder' => __('Un nom clair et concis'),
])
</div>
</div>
</fieldset>
</div>
{{-- EMPLOYEES --}}
<div class="col-12 col-md-6 mb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.employees_count')) }}</legend>
<div class="row">
<div class="col-12">
@include('bo.partials.inputs.int-number', [
'id' => 'siteEmployees',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.employees_count')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'step' => 1,
'name' => 'employees',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('validation.numeric', [
'attribute' => __(':field :inter:model', [
'field' => __('validation.custom.employees_count'),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
]),
])
</div>
</div>
</fieldset>
</div>
{{-- DESCRIPTION --}}
<div class="col-12 pb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.description')) }}</legend>
<div class="row mb-3">
{{-- DESCRIPTION_2 --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'siteDescription',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.description')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'description',
'required' => false,
'model' => $siteModel ?? null,
'helper' => __('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.description')),
'inter' => __('validation.custom.of_the.female'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 3,
'max' => 255,
]),
'placeholder' => __('Une description clair et concise'),
])
</div>
{{-- DESCRIPTION_2 --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'siteDescription2',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.description_2')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'description_2',
'required' => false,
'model' => $siteModel ?? null,
'helper' => __('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.description_2')),
'inter' => __('validation.custom.of_the.female'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 3,
'max' => 255,
]),
'placeholder' => __('Un deuxième niveau de description clair et concis'),
])
</div>
</div>
</fieldset>
</div>
{{-- LOGOS --}}
<div class="col-12 col-md-6 mb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::of(trans_choice('models.classes.logo', 1))->plural()->ucfirst() }}</legend>
<div class="row">
<div class="col-12">
@include('bo.partials.inputs.pivot-belongsToMany', [
'id' => 'siteLogos',
'label' => __('validation.custom.site_logos'),
'name' => 'logos',
'required' => false,
'model' => $siteModel ?? null,
'itemsList' => $logoModels ?? null,
'itemLimit' => [0, 10],
'placeholder' => 'Rechercher un logo',
'helper' => __('Séléctionnez le ou les :model1 à associer à ce :model2 (minimum :min, maximum :max)', [
'model1' => trans_choice('models.classes.logo', '*'),
'model2' => trans_choice('models.classes.site', 1),
'min' => 0,
'max' => 10,
]),
])
</div>
</div>
</fieldset>
</div>
{{-- PICTOS --}}
<div class="col-12 pb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::of(__('validation.custom.picto'))->ucfirst()->plural() }}</legend>
<div class="row">
@php
$itemsList = collect(\App\Enums\Sites\SpeciesEnum::toArray())->values();
$values = collect(old('pictos', $siteModel->pictos ?? []))->values();
$selectedItemList = collect($itemsList)
->filter(fn($picto) => $values->filter(fn($value) => intval($value) === $picto->value)->count())
->values();
@endphp
@include('bo.partials.inputs.select-multiple-enum', [
'id' => 'sitePictos',
'label' => __(':field :inter:model', [
'field' => Str::of(__('validation.custom.picto'))->ucfirst()->plural(),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'name' => 'pictos',
'itemsSelected' => $selectedItemList,
'itemsList' => $itemsList,
'itemLimit' => [0, count($itemsList)],
'placeholder' => __('Rechercher un pictogramme spécifique'),
'helper' => __('Sélectionnez les pictogrammes à associer parmi la liste (minimum 0, maximum :max)', [
'max' => count($itemsList),
]),
'required' => true,
])
</div>
</fieldset>
</div>
{{-- ADDRESS --}}
<div class="col-12 col-md-6 mb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.attributes.address')) }}</legend>
<div class="row">
<div class="col-12">
@include('bo.partials.inputs.varchar-multiline', [
'id' => 'siteAddress',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.attributes.address')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'address',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => __('validation.attributes.address'),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 3,
'max' => 255,
]),
'placeholder' => __('L\'adresse précise du site'),
])
</div>
</div>
</fieldset>
</div>
{{-- PHONE_NUMBER --}}
<div class="col-12 col-md-6 mb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.attributes.phone')) }}</legend>
<div class="row">
<div class="col-12">
@include('bo.partials.inputs.varchar', [
'id' => 'sitePhoneNumber',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.attributes.phone')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'phone_number',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => __('validation.attributes.phone'),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 10,
'max' => 20,
]),
'placeholder' => __('01.23.45.67.89'),
])
</div>
</div>
</fieldset>
</div>
{{-- ACCESS_LINE --}}
<div class="col-12 mb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.access_line')) }}</legend>
<div class="row">
<div class="col-12">
@include('bo.partials.inputs.json-access-lines', [
'id' => 'siteAccessLine',
'name' => 'access_line',
'required' => false,
'model' => $siteModel ?? null,
'helper' => __('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => __('validation.custom.access_line'),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 3,
'max' => 255,
]),
])
</div>
</div>
</fieldset>
</div>
{{-- DIRECTOR PART --}}
<div class="col-12 pb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.director_speach')) }}</legend>
<div class="row mb-3">
{{-- DIRECTOR_NAME --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'siteDirectorName',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.director_name')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'director_name',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => __('validation.custom.director_name'),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 3,
'max' => 255,
]),
'placeholder' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.director_name')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- DIRECTOR_SPEACH --}}
<div class="col-12 m-md-0 mb-3">
@include('bo.partials.inputs.text-html', [
'id' => 'siteDirectorSpeach',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.director_speach')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'name' => 'director_speach',
'model' => $siteModel ?? null,
'required' => true,
'helper' => __('crud.minicrud.text_warning'),
])
</div>
</div>
</fieldset>
</div>
{{-- EMPLOYEE PART --}}
<div class="col-12 pb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.employee_speach')) }}</legend>
<div class="row mb-3">
{{-- EMPLOYEE_NAME --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'siteEmployeeName',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.employee_name')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'employee_name',
'required' => false,
'model' => $siteModel ?? null,
'helper' => __('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => __('validation.custom.employee_name'),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 3,
'max' => 255,
]),
'placeholder' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.employee_name')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- EMPLOYEE_FUNCTION --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'siteEmployeeFunction',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.employee_function')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'employee_function',
'required' => false,
'model' => $siteModel ?? null,
'helper' => __('validation.between.string', [
'attribute' => __(':field :inter:model', [
'field' => __('validation.custom.employee_function'),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'min' => 3,
'max' => 255,
]),
'placeholder' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.employee_function')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- EMPLOYEE_SPEACH --}}
<div class="col-12 m-md-0 mb-3">
@include('bo.partials.inputs.text-html', [
'id' => 'siteEmployeeSpeach',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.employee_speach')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'name' => 'employee_speach',
'model' => $siteModel ?? null,
'required' => false,
'helper' => __('crud.minicrud.text_warning'),
])
</div>
</div>
</fieldset>
</div>
{{-- GEOGRAPHICAL COORDINATES --}}
<div class="row">
<div class="col">
<fieldset class="mb-3 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.geographical_coordinates')) }}</legend>
<div class="row mb-3">
{{-- LATITUDE --}}
<div class="col-12 col-md-6">
@include('bo.partials.inputs.varchar', [
'id' => 'siteLatitude',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.latitude')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'name' => 'latitude',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('crud.helpers.latitude'),
])
</div>
{{-- LONGITUDE --}}
<div class="col-12 col-md-6">
@include('bo.partials.inputs.varchar', [
'id' => 'siteLongitude',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(__('validation.custom.longitude')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'name' => 'longitude',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('validation.longitude'),
])
</div>
</div>
</fieldset>
</div>
</div>
{{-- HIGHLIGHTS --}}
<div class="col-12 mb-3">
<fieldset class="border p-3">
<legend>{{ Str::ucfirst(trans_choice('validation.custom.highlight', '*')) }}</legend>
<div class="row mb-3">
<div class="col-12">
@include('bo.partials.inputs.text-html', [
'id' => 'siteHighlights',
'label' => __(':field :inter:model', [
'field' => Str::ucfirst(trans_choice('validation.custom.highlight', '*')),
'inter' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'name' => 'highlights',
'model' => $siteModel ?? null,
'required' => false,
'helper' => __('crud.minicrud.text_warning'),
])
</div>
</div>
</fieldset>
</div>
{{-- LOGO --}}
<div class="col-12 pb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.logo')) }}</legend>
<div class="row mb-3">
{{-- LOGO_ALT --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'siteLogoAlt',
'label' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.alt_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.logo'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'logo_alt',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.picture_alt_helper'),
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.alt_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.logo'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- LOGO_TITLE --}}
<div class="col-12 col-md-6 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'siteLogoTitle',
'label' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.title_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.logo'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'logo_title',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.picture_title_helper'),
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.title_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.logo'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- LOGO --}}
<div class="col-12">
@include('bo.partials.inputs.varchar-picture', [
'id' => 'siteLogo',
'name' => 'logo',
'width' => 1000,
'height' => 562,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.dimensions_must_be', [
'widthpx' => '1000px',
'heightpx' => '562px',
]),
'required' => true,
'preview' => true,
])
</div>
</div>
</fieldset>
</div>
{{-- PICTURE_1 --}}
<div class="col-12 pb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.picture_1')) }}</legend>
<div class="row mb-3">
{{-- PICTURE_1_ALT --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'sitePicture1Alt',
'label' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.alt_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_1'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'picture_1_alt',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.picture_alt_helper'),
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.alt_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_1'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- PICTURE_1_TITLE --}}
<div class="col-12 col-md-6 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'sitePicture1Title',
'label' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.title_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_1'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'picture_1_title',
'required' => true,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.picture_title_helper'),
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.title_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_1'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- PICTURE_1 --}}
<div class="col-12">
@include('bo.partials.inputs.varchar-picture', [
'id' => 'sitePicture1',
'name' => 'picture_1',
'width' => 1000,
'height' => 562,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.dimensions_must_be', [
'widthpx' => '1000px',
'heightpx' => '562px',
]),
'required' => true,
'preview' => true,
])
</div>
</div>
</fieldset>
</div>
{{-- PICTURE_2 --}}
<div class="col-12 pb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.picture_2')) }}</legend>
<div class="row mb-3">
{{-- PICTURE_2_ALT --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'sitePicture2Alt',
'label' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.alt_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_2'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'picture_2_alt',
'required' => false,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.picture_alt_helper'),
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.alt_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_2'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- PICTURE_2_TITLE --}}
<div class="col-12 col-md-6 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'sitePicture2Title',
'label' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.title_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_2'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'picture_2_title',
'required' => false,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.picture_title_helper'),
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.title_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_2'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- PICTURE_2 --}}
<div class="col-12">
@include('bo.partials.inputs.varchar-picture', [
'id' => 'sitePicture2',
'name' => 'picture_2',
'width' => 1000,
'height' => 562,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.dimensions_must_be', [
'widthpx' => '1000px',
'heightpx' => '562px',
]),
'required' => false,
'preview' => true,
])
</div>
</div>
</fieldset>
</div>
{{-- PICTURE_3 --}}
<div class="col-12 pb-3">
<fieldset class="h-100 border p-3">
<legend>{{ Str::ucfirst(__('validation.custom.picture_3')) }}</legend>
<div class="row mb-3">
{{-- PICTURE_3_ALT --}}
<div class="col-12 col-md-6 m-md-0 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'sitePicture3Alt',
'label' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.alt_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_3'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'picture_3_alt',
'required' => false,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.picture_alt_helper'),
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.alt_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_3'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- PICTURE_3_TITLE --}}
<div class="col-12 col-md-6 mb-3">
@include('bo.partials.inputs.varchar', [
'id' => 'sitePicture3Title',
'label' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.title_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_3'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
'hasWordCounter' => true,
'name' => 'picture_3_title',
'required' => false,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.picture_title_helper'),
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
'field1' => Str::ucfirst(__('validation.custom.title_attribute')),
'inter1' => __('validation.custom.of_the.male'),
'field2' => __('validation.custom.picture_3'),
'inter2' => __('validation.custom.of_the.male'),
'model' => trans_choice('models.classes.site', 1),
]),
])
</div>
{{-- PICTURE_3 --}}
<div class="col-12">
@include('bo.partials.inputs.varchar-picture', [
'id' => 'sitePicture3',
'name' => 'picture_3',
'width' => 1000,
'height' => 562,
'model' => $siteModel ?? null,
'helper' => __('crud.minicrud.dimensions_must_be', [
'widthpx' => '1000px',
'heightpx' => '562px',
]),
'required' => false,
'preview' => true,
])
</div>
</div>
</fieldset>
</div>
<div class="col-12 text-center">
<p><b>{{ __('validation.custom.required_fields') }}</b></p>
</div>
</div>