@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') }} {{ html()->horizontalFormGroup()->media('verticalFeatured', 'image', 'Vertical Featured') }} {{ html()->horizontalFormGroup()->media('files', 'downloads', 'Documents') }}
@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('articles', 'Articles', 'Article', 'name', 'started_at', 'DESC') }} {{-- html()->horizontalFormGroup()->manyToManyPolymorph('pages', 'Pages', 'Page') --}}
@endcomponent @component('backoffice._components.tab', ['item' => 'Fragments'])
{{ html()->alert('info', 'Hold the CTRL key and click the items in the list to choose them') }} {{ html()->horizontalFormGroup()->manyToManyPolymorph('fragments', 'Fragment', 'Fragment') }}
@endcomponent @component('backoffice._components.tab', ['item' => 'Meta'])
{{ html()->seo() }}
@endcomponent