schema([ Section::make('Hero Section') ->description('Manage the main hero section content on the homepage.') ->icon('heroicon-o-photo') ->schema([ TextInput::make('hero_badge_text') ->label('Hero Badge Text') ->maxLength(50), TextInput::make('hero_header') ->label('Hero Header') ->required() ->maxLength(100), Textarea::make('hero_sub_header') ->label('Hero Sub Header') ->rows(3) ->maxLength(255), Grid::make()->schema([ TextInput::make('hero_link_button_text') ->label('Hero Button Text') ->maxLength(50), TextInput::make('hero_link_button_url') ->label('Hero Button URL') ->maxLength(255) ->url(), ])->columns(2), ]), Section::make('Background Video') ->description('Upload or link the background video for the hero section.') ->icon('heroicon-o-camera') ->schema([ TextInput::make('bg_video') ->label('Background Video URL') ->maxLength(255) ->url(), ]), ]) ->columns(1) ->statePath('data'); } public static function getNavigationGroup(): ?string { return __('CMS'); } public static function getNavigationLabel(): string { return __('Home'); } public function getTitle(): string|Htmlable { return 'Home'; } public function getHeading(): string|Htmlable { return 'Edit homepage text and images from here'; } public function getSubheading(): string|Htmlable|null { return 'Manage the homepage hero section, background video, and call-to-action content.'; } }