Integrate dynamic settings into About page: update content sections to utilize AboutSettings for titles, subtitles, paragraphs, and media sources, enhancing content management and user experience.
This commit is contained in:
47
app/Settings/AboutSettings.php
Normal file
47
app/Settings/AboutSettings.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Settings;
|
||||
|
||||
use Spatie\LaravelSettings\Settings;
|
||||
|
||||
class AboutSettings extends Settings
|
||||
{
|
||||
// Our Story Section
|
||||
public string $our_story_title;
|
||||
public string $our_story_subtitle;
|
||||
public string $our_story_paragraph_one;
|
||||
public string $our_story_paragraph_two;
|
||||
public string $our_story_paragraph_three;
|
||||
public string $our_story_button_text;
|
||||
public string $our_story_button_url;
|
||||
public string $our_story_video_poster;
|
||||
public string $our_story_video_source;
|
||||
|
||||
// Our Journey Section
|
||||
public string $our_journey_title;
|
||||
public string $our_journey_subtitle;
|
||||
public array $our_journey_milestones; // [{year: 2010, title: "Start Company", description: "...", image: "..."}]
|
||||
|
||||
// Company Structure Section
|
||||
public string $company_structure_title;
|
||||
public string $company_structure_subtitle;
|
||||
public string $company_structure_director_name;
|
||||
public string $company_structure_advisor_name;
|
||||
public array $company_structure_departments; // [{name: "HSE", person: "Michael Brown"}]
|
||||
|
||||
// Our Management Section
|
||||
public string $our_management_title;
|
||||
public string $our_management_subtitle;
|
||||
public array $our_management_team; // [{name: "John Smith", title: "CEO", description: "...", image: "..."}]
|
||||
|
||||
// Our Facilities Section
|
||||
public string $our_facilities_title;
|
||||
public string $our_facilities_subtitle;
|
||||
public array $our_facilities_locations; // [{name: "Headquarters", location: "...", description: "...", image: "...", tags: ["R&D Labs"]}]
|
||||
|
||||
|
||||
public static function group(): string
|
||||
{
|
||||
return 'cms_aboutpage';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user