Add contact settings integration: update contact page to utilize dynamic settings for subtitle, header, paragraph, contact details, and map embed URL, enhancing content management and user experience.
This commit is contained in:
27
app/Settings/ContactSettings.php
Normal file
27
app/Settings/ContactSettings.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Settings;
|
||||
|
||||
use Spatie\LaravelSettings\Settings;
|
||||
|
||||
class ContactSettings extends Settings
|
||||
{
|
||||
public string $contact_subtitle = 'Default Contact Subtitle';
|
||||
|
||||
public string $contact_header = 'Default Contact Header';
|
||||
|
||||
public string $contact_paragraph = 'This is a default paragraph for the contact page. Please update it from the Filament panel.';
|
||||
|
||||
public string $phone_number = '+1234567890';
|
||||
|
||||
public string $email_address = 'info@example.com';
|
||||
|
||||
public string $location_address = '123 Main St, Anytown, USA';
|
||||
|
||||
public string $map_embed_url = '';
|
||||
|
||||
public static function group(): string
|
||||
{
|
||||
return 'contact';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user