@component('backoffice._components.tab', ['item' => 'Content', 'active' => true])
{{ html()->translations(function () { return [ html()->horizontalFormGroup()->required()->text('name', 'Name'), html()->horizontalFormGroup()->required()->text('slug', 'Slug'), html()->horizontalFormGroup()->required()->text('label', 'Label'), html()->horizontalFormGroup()->required()->textarea('description', 'Description'), html()->horizontalFormGroup()->required()->richTextarea('content', 'Content'), ]; }) }}
@endcomponent @component('backoffice._components.tab', ['item' => 'Media'])
{{ html()->horizontalFormGroup()->media('featured', 'image', 'Featured') }}
@endcomponent @component('backoffice._components.tab', ['item' => 'Related contents'])
{{ html()->alert('info', 'Hold the CTRL key and click the items in the list to choose them') }} {{ html()->horizontalFormGroup()->manyToManyPolymorph('fragmentContents', 'Fragment contents', 'FragmentContent') }} {{-- html()->horizontalFormGroup()->manyToManyPolymorph('pages', 'Pages', 'Page') --}}
@endcomponent @component('backoffice._components.tab', ['item' => 'Fragments'])
{{-- html()->horizontalFormGroup()->manyToManyPolymorph('fragments', 'Fragment', 'Fragment') --}}
{{ html()->multiselect( 'select-fragments', $restFragments ) ->attributes([ 'size' => $restFragments->count() ]) ->id('js-select-fragments') ->class('c-form-list-box__list') }}
{{ html()->multiselect( 'fragments[]', $modelFragments->pluck('name','id'), $modelFragments->pluck('id') ) ->value($modelFragments->pluck('id')) ->attributes([ 'size' => $restFragments->count() ]) ->id('js-pick-fragments') ->class('c-form-list-box__list') }} {{ html()->alert('info', 'Hold the CTRL key and click the items in the list to choose them') }}
@endcomponent @component('backoffice._components.tab', ['item' => 'Meta'])
{{ html()->seo() }}
@endcomponent