{{-- PAGE_ID --}}
{{ Str::ucfirst(trans_choice('models.classes.static_page', '1')) }}
@include('bo.partials.inputs.bigint-foreign-id', [ 'id' => 'sectionPage', 'label' => __(':field :inter:model', [ 'field' => Str::ucfirst(trans_choice('models.classes.static_page', '1')), 'inter' => __('validation.custom.of_the.female'), 'model' => trans_choice('models.classes.section', 1), ]), 'name' => 'page_id', 'disabled' => true, 'required' => false, 'model' => $sectionModel ?? null, 'associatedModels' => [$sectionModel->page] ?? null, 'foreignLabel' => 'title', 'helper' => '', ])
{{-- SECTION --}}
{{ Str::ucfirst(trans_choice('models.classes.section', 1)) }}
@include('bo.partials.inputs.tinyint-enum', [ 'id' => 'sectionSection', 'label' => __('Section associƩe'), 'name' => 'section', 'model' => $sectionModel ?? null, 'required' => false, 'disabled' => true, 'associatedModels' => \App\Enums\Sections\PageSectionEnum::toArray(), 'helper' => '', ])
{{-- H2_TITLE --}}
{{ Str::ucfirst(__('validation.custom.h2_title')) }}
@include('bo.partials.inputs.varchar', [ 'id' => 'sectionH2Title', 'label' => __(':field :inter:model', [ 'field' => Str::ucfirst(__('validation.custom.h2_title')), 'inter' => __('validation.custom.of_the.female'), 'model' => trans_choice('models.classes.section', 1), ]), 'hasWordCounter' => true, 'name' => 'h2_title', 'required' => true, 'model' => $sectionModel ?? null, 'helper' => __('validation.between.string', [ 'attribute' => __(':field :inter:model', [ 'field' => Str::ucfirst(__('validation.custom.h2_title')), 'inter' => __('validation.custom.of_the.female'), 'model' => trans_choice('models.classes.section', 1), ]), 'min' => 3, 'max' => 255, ]), 'placeholder' => __('Un titre clair et concis'), ])
@if ( !in_array($sectionModel->section, [ \App\Enums\Sections\PageSectionenum::hire_grow, \App\Enums\Sections\PageSectionenum::produce_networks, ]) ) {{-- CONTENT --}}
{{ Str::ucfirst(__('validation.attributes.content')) }}
@include('bo.partials.inputs.text-html', [ 'id' => 'sectionText', 'label' => __(':field :inter:model', [ 'field' => Str::ucfirst(__('validation.custom.first_content')), 'inter' => __('validation.custom.of_the.female'), 'model' => trans_choice('models.classes.section', 1), ]), 'name' => 'text', 'model' => $sectionModel ?? null, 'required' => true, 'editorConfig' => $sectionModel->section->getFirstWysiwygType(), 'helper' => __('crud.minicrud.text_warning'), ])
@endif @if ($sectionModel->data) {{-- MINICRUD --}}
@can('addPartPiece', $sectionModel) {{ __('Ajouter une partie') }} @endcan @can('removePartPiece', $sectionModel)
@for ($i = 1; $i <= $sectionModel->countPartPieces(); $i++) {{ __('Enlever partie :index', ['index' => $i]) }} @endfor
@endcan
@include('modules.minicrud-form-inputs', [ 'data' => $sectionModel->data, 'model' => $sectionModel, ])
@endif

{{ __('* Champs obligatoires') }}