Refactor About page settings: replace management section with a video upload feature, update view to display static management information, and clean up related settings for improved content management and user experience.
This commit is contained in:
@@ -71,10 +71,12 @@ class AboutPageSettings extends SettingsPage
|
||||
->disk('public')
|
||||
->directory('about-us')
|
||||
->required(),
|
||||
TextInput::make('our_story_video_source')
|
||||
->label('Video Source URL')
|
||||
->url()
|
||||
->maxLength(255)
|
||||
FileUpload::make('our_story_video_source')
|
||||
->label('Video Source File')
|
||||
->acceptedFileTypes(['video/mp4', 'video/webm', 'video/ogg'])
|
||||
->maxSize(102400) // 100MB
|
||||
->disk('public')
|
||||
->directory('about-us-videos')
|
||||
->required(),
|
||||
]),
|
||||
|
||||
@@ -160,49 +162,6 @@ class AboutPageSettings extends SettingsPage
|
||||
->collapsible(),
|
||||
]),
|
||||
|
||||
Section::make('Our Management Section')
|
||||
->description("Manage the 'Our Management' team details on the About Us page.")
|
||||
->icon('heroicon-o-briefcase')
|
||||
->schema([
|
||||
TextInput::make('our_management_title')
|
||||
->label('Title')
|
||||
->required()
|
||||
->maxLength(100),
|
||||
Textarea::make('our_management_subtitle')
|
||||
->label('Subtitle')
|
||||
->rows(2)
|
||||
->maxLength(255)
|
||||
->required(),
|
||||
Repeater::make('our_management_team')
|
||||
->label('Team Members')
|
||||
->schema([
|
||||
FileUpload::make('image')
|
||||
->label('Image')
|
||||
->image()
|
||||
->maxSize(2048)
|
||||
->disk('public')
|
||||
->directory('about-us-team')
|
||||
->required(),
|
||||
TextInput::make('name')
|
||||
->label('Name')
|
||||
->required()
|
||||
->maxLength(100),
|
||||
TextInput::make('title')
|
||||
->label('Title/Position')
|
||||
->required()
|
||||
->maxLength(100),
|
||||
Textarea::make('description')
|
||||
->label('Description')
|
||||
->rows(3)
|
||||
->maxLength(255)
|
||||
->required(),
|
||||
])
|
||||
->minItems(1)
|
||||
->columns(1)
|
||||
->reorderable()
|
||||
->collapsible(),
|
||||
]),
|
||||
|
||||
Section::make('Our Facilities Section')
|
||||
->description("Manage the 'Our Facilities' details on the About Us page.")
|
||||
->icon('heroicon-o-building-library')
|
||||
|
||||
Reference in New Issue
Block a user