diff --git a/app/Classes/Settings/System.php b/app/Classes/Settings/System.php index 792e2cb3..e278bac4 100644 --- a/app/Classes/Settings/System.php +++ b/app/Classes/Settings/System.php @@ -59,6 +59,8 @@ class System 'motd-enabled' => 'string', 'usefullinks-enabled' => 'string', 'motd-message' => 'string|nullable', + 'seo-title' => 'string|nullable', + 'seo-description' => 'string|nullable', ]); $validator->after(function ($validator) use ($request) { @@ -111,6 +113,8 @@ class System "SETTINGS::SYSTEM:MOTD_ENABLED" => "motd-enabled", "SETTINGS::SYSTEM:MOTD_MESSAGE" => "motd-message", "SETTINGS::SYSTEM:USEFULLINKS_ENABLED" => "usefullinks-enabled", + "SETTINGS::SYSTEM:SEO_TITLE" => "seo-title", + "SETTINGS::SYSTEM:SEO_DESCRIPTION" => "seo-description", ]; foreach ($values as $key => $value) { diff --git a/database/seeders/Seeds/SettingsSeeder.php b/database/seeders/Seeds/SettingsSeeder.php index f695483e..a9e5146b 100644 --- a/database/seeders/Seeds/SettingsSeeder.php +++ b/database/seeders/Seeds/SettingsSeeder.php @@ -630,5 +630,20 @@ class SettingsSeeder extends Seeder 'type' => 'text', 'description' => 'MOTD Message', ]); + Settings::firstOrCreate([ + 'key' => 'SETTINGS::SYSTEM:SEO_TITLE', + ], [ + 'value' => 'Controlpanel.gg', + 'type' => 'text', + 'description' => 'The SEO Title', + ]); + + Settings::firstOrCreate([ + 'key' => 'SETTINGS::SYSTEM:SEO_DESCRIPTION', + ], [ + 'value' => 'Billing software for Pterodactyl Dashboard!', + 'type' => 'text', + 'description' => 'SEO Description', + ]); } } diff --git a/themes/default/views/admin/settings/tabs/system.blade.php b/themes/default/views/admin/settings/tabs/system.blade.php index 23ed381c..fa983254 100644 --- a/themes/default/views/admin/settings/tabs/system.blade.php +++ b/themes/default/views/admin/settings/tabs/system.blade.php @@ -300,7 +300,35 @@ class="form-control @error('minimum-credits') is-invalid @enderror" required> - +
+
+

{{ __('SEO') }}

+
+
+
+
+
+ + +
+ +
+
+
+ + +
+ +
+
@@ -454,7 +482,7 @@ diff --git a/themes/default/views/layouts/app.blade.php b/themes/default/views/layouts/app.blade.php index ea967596..72e98779 100644 --- a/themes/default/views/layouts/app.blade.php +++ b/themes/default/views/layouts/app.blade.php @@ -4,6 +4,9 @@ + + + exists('logo.png') ? asset('storage/logo.png') : asset('images/controlpanel_logo.png') }}' property="og:image"> diff --git a/themes/default/views/layouts/main.blade.php b/themes/default/views/layouts/main.blade.php index 6217cff4..b708b198 100644 --- a/themes/default/views/layouts/main.blade.php +++ b/themes/default/views/layouts/main.blade.php @@ -6,6 +6,9 @@ + + + exists('logo.png') ? asset('storage/logo.png') : asset('images/controlpanel_logo.png') }}' property="og:image"> {{ config('app.name', 'Laravel') }}