PoultryPageType::class ]; protected $casts = [ 'content' => 'array', ]; protected $fillable = [ 'menutitle', 'title', 'metaTitle', 'metaDescription', 'headerContent', 'content' ]; /** * Get Blocks Template Data * * @return array */ public static function getBlocks(): array { return [ PoultryBlocType::bloc1()->value => [ 'type' => PoultryBlocType::bloc1(), 'content' => [ 'img' => [ 'dimensions' => 'largeur 792,hauteur 792', 'label' => 'Illustration', 'inputType' => InputType::image(), 'alt' => '', 'value' => '' ], 'side' => [ 'label' => 'Orientation de l\'image (gauche ou droite)', 'inputType' => InputType::boolean(), 'value' => '' ], 'miniblocArray' => [ 'label' => 'Miniblocs', 'inputType' => InputType::miniblocArray(), 'value' => [] ] ] ], PoultryBlocType::bloc2()->value => [ 'type' => PoultryBlocType::bloc2(), 'content' => [ 'title' => [ 'label' => 'Titre (h2)', 'inputType' => InputType::string(), 'value' => '' ], 'subtitle' => [ 'label' => 'Sous-titre', 'inputType' => InputType::string(), 'value' => '' ], 'content' => [ 'label' => 'Contenu', 'inputType' => InputType::text(), 'html' => '' ], 'breedername' => [ 'label' => 'Nom éleveur', 'inputType' => InputType::string(), 'value' => '' ], 'breederjob' => [ 'label' => 'Description éleveur', 'inputType' => InputType::string(), 'value' => '' ], 'video' => [ 'label' => 'Video vimeo', 'inputType' => InputType::videoVimeo(), 'value' => '' ], 'side' => [ 'label' => 'Orientation de l\'image (gauche ou droite)', 'inputType' => InputType::boolean(), 'value' => '' ], ] ] ]; } }