4
4
5
5
use BackedEnum ;
6
6
use Filament \Actions \Action ;
7
- use Filament \Schemas \Schema ;
8
- use Filament \Pages \SettingsPage ;
9
- use Spatie \Sitemap \SitemapGenerator ;
10
- use Filament \Schemas \Components \Grid ;
7
+ use Filament \Forms \Components \FileUpload ;
11
8
use Filament \Forms \Components \Textarea ;
12
9
use Filament \Forms \Components \TextInput ;
13
10
use Filament \Notifications \Notification ;
11
+ use Filament \Pages \SettingsPage ;
14
12
use Filament \Schemas \Components \Section ;
15
- use Filament \Forms \ Components \ FileUpload ;
16
- use TomatoPHP \ FilamentSettingsHub \ Traits \ UseShield ;
13
+ use Filament \Schemas \ Schema ;
14
+ use Spatie \ Sitemap \ SitemapGenerator ;
17
15
use TomatoPHP \FilamentSettingsHub \Settings \SitesSettings ;
16
+ use TomatoPHP \FilamentSettingsHub \Traits \UseShield ;
18
17
19
18
class SiteSettings extends SettingsPage
20
19
{
21
20
use UseShield;
22
21
23
- protected static string | BackedEnum | null $ navigationIcon = 'heroicon-o-cog ' ;
22
+ protected static string | BackedEnum | null $ navigationIcon = 'heroicon-o-cog ' ;
24
23
25
24
protected static string $ settings = SitesSettings::class;
26
25
@@ -70,7 +69,7 @@ public function generateSitemap()
70
69
public function form (Schema $ schema ): Schema
71
70
{
72
71
return $ schema
73
- ->schema ([
72
+ ->schema ([
74
73
Section::make (trans ('filament-settings-hub::messages.settings.site.site_seo ' ))
75
74
->description (trans ('filament-settings-hub::messages.settings.site.site_name_description ' ))
76
75
->schema ([
@@ -98,9 +97,9 @@ public function form(Schema $schema): Schema
98
97
->label (trans ('filament-settings-hub::messages.settings.site.form.site_email ' ))
99
98
->hint (config ('filament-settings-hub.show_hint ' ) ? 'setting("site_email") ' : null ),
100
99
])->columns (2 ),
101
- Section::make (trans ('filament-settings-hub::messages.settings.site.site_images ' ))
102
- ->description (trans ('filament-settings-hub::messages.settings.site.site_logo_description ' ))
103
- ->schema ([
100
+ Section::make (trans ('filament-settings-hub::messages.settings.site.site_images ' ))
101
+ ->description (trans ('filament-settings-hub::messages.settings.site.site_logo_description ' ))
102
+ ->schema ([
104
103
FileUpload::make ('site_profile ' )
105
104
->disk (config ('filament-settings-hub.upload.disk ' ))
106
105
->directory (config ('filament-settings-hub.upload.directory ' ))
@@ -113,7 +112,7 @@ public function form(Schema $schema): Schema
113
112
->label (trans ('filament-settings-hub::messages.settings.site.form.site_logo ' ))
114
113
->columnSpan (2 )
115
114
->hint (config ('filament-settings-hub.show_hint ' ) ? 'setting("site_logo") ' : null ),
116
- ])->columns (2 ),
117
- ])->columns (1 );
115
+ ])->columns (2 ),
116
+ ])->columns (1 );
118
117
}
119
118
}
0 commit comments