@component('backoffice._components.tab', ['item' => 'Content', 'active' => true])
{{ html()->translations(function () { return [ html()->horizontalFormGroup()->required()->text('name', 'Name'), html()->horizontalFormGroup()->required()->textarea('description', 'Description'), html()->horizontalFormGroup()->required()->richTextarea('content', 'Content'), html()->horizontalFormGroup()->required()->text('cta_label', 'CTA label'), html()->horizontalFormGroup()->required()->text('cta_link', 'CTA link'), html()->horizontalFormGroup()->required()->select('cta_link_target', 'CTA link target', ['_self'=>"Same window", '_blank'=>"New window"]), ]; }) }}
@endcomponent @component('backoffice._components.tab', ['item' => 'Media'])
{{ html()->horizontalFormGroup()->media('featured', 'translatedImages', 'Featured image') }}
@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') --}} {{ html()->horizontalFormGroup()->manyToManyPolymorph('videos', 'Videos', 'Video') }}
@endcomponent