diff --git a/.env.example b/.env.example index f6d2f38e..755c5511 100644 --- a/.env.example +++ b/.env.example @@ -8,18 +8,6 @@ APP_URL=http://localhost APP_TIMEZONE=UTC ### --- App Settings End --- ### -### --- Localization settings --- ### -# If set to true, Language is chosen automatically depending on the users browserlanguage. -DYNAMIC_LOCALE = false -# The language of the Dashboard. This is also the fallback if dynamic_locale is true but no translation is found -LOCALE=en -# You can grab the Language-Codes for the Datatables from this Website https://datatables.net/plug-ins/i18n/ -DATATABLE_LOCALE=en-gb -#The languages you DO NOT want to support on your Controlpanel split by comma. -#Remove the language to make it available -UNSUPPORTED_LOCALES=german,italian,chinese -### --- Localization settings End --- ### - ### --- DB Settings (required) --- ### DB_CONNECTION=mysql DB_HOST=127.0.0.1 @@ -30,26 +18,6 @@ DB_PASSWORD= ### --- DB Settings End --- ### -### --- Discord Settings (optional) --- ### -# Discord API Credentials - https://discordapp.com/developers/applications/ -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= -# Bot Settings - will join users to your discord -DISCORD_BOT_TOKEN= -DISCORD_GUILD_ID= -# Discord role that will be assigned to users when they register -DISCORD_ROLE_ID= -### --- Discord Settings End --- ### - -### --- Controlpanel Settings (required) --- ### -# Controlpanel URL Settings - URLs must not end with a slash! -PTERODACTYL_URL=https://panel.controlpanel.gg # required -PHPMYADMIN_URL=https://mysql.controlpanel.gg #optional. remove to remove database button -DISCORD_INVITE_URL=https://discord.gg/vrUYdxG4wZ #optional -# Admin API Token from Pterodactyl Panel - Nececary for the Panel to work -PTERODACTYL_TOKEN= -### --- Controlpanel Settings End --- ### - # Google Recaptcha API Credentials - https://www.google.com/recaptcha/admin - reCaptcha V2 (not v3) RECAPTCHA_SITE_KEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI RECAPTCHA_SECRET_KEY=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe diff --git a/app/Classes/Settings/Misc.php b/app/Classes/Settings/Misc.php index 90a58943..75386c6f 100644 --- a/app/Classes/Settings/Misc.php +++ b/app/Classes/Settings/Misc.php @@ -36,7 +36,14 @@ class Misc $values = [ //SETTINGS::VALUE => REQUEST-VALUE (coming from the html-form) - "SETTINGS::MISC:PHPMYADMIN:URL" => "phpmyadmin-url" + "SETTINGS::MISC:PHPMYADMIN:URL" => "phpmyadmin-url", + "SETTINGS::DISCORD:BOT_TOKEN" => "discord-bot-token", + "SETTINGS::DISCORD:CLIENT_ID" => "discord-client-id", + "SETTINGS::DISCORD:CLIENT_SECRET" => "discord-client-secret", + "SETTINGS::DISCORD:GUILD_ID" => "discord-guild-id", + "SETTINGS::DISCORD:INVITE_URL" => "discord-invite-url", + "SETTINGS::DISCORD:ROLE_ID" => "discord-role-id" + ]; diff --git a/public/images/discord_logo.png b/public/images/discord_logo.png new file mode 100644 index 00000000..aa1b5e2e Binary files /dev/null and b/public/images/discord_logo.png differ diff --git a/resources/views/admin/settings/tabs/misc.blade.php b/resources/views/admin/settings/tabs/misc.blade.php index 13ee8205..1b983a73 100644 --- a/resources/views/admin/settings/tabs/misc.blade.php +++ b/resources/views/admin/settings/tabs/misc.blade.php @@ -1,6 +1,6 @@
+ action="{{ route('admin.settings.update.miscsettings') }}"> @csrf @method('PATCH') @@ -13,7 +13,8 @@
- + @@ -23,11 +24,11 @@
+ id="icon">
@error('icon') - + {{ $message }} @enderror @@ -36,15 +37,81 @@
+ for="favicon">{{ __('Select panel favicon') }}
@error('favicon') - + {{ $message }} @enderror
+
+ + + +
+
+ + +
+
+
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
diff --git a/resources/views/admin/settings/tabs/payments.blade.php b/resources/views/admin/settings/tabs/payments.blade.php index 46303069..68a8bdbd 100644 --- a/resources/views/admin/settings/tabs/payments.blade.php +++ b/resources/views/admin/settings/tabs/payments.blade.php @@ -1,6 +1,6 @@
+ action="{{ route('admin.settings.update.paymentsettings') }}"> @csrf @method('PATCH') @@ -13,16 +13,18 @@
+ value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:PAYPAL:CLIENT_ID") }}" + class="form-control @error('paypal-client-id') is-invalid @enderror">
- - {{ __('Your PayPal Secret-Key')}} ( + https://developer.paypal.com/docs/integration/direct/rest/ ) +
@@ -31,7 +33,8 @@
- + @@ -41,8 +44,10 @@
- - {{ __('Your PayPal SANDBOX Secret-Key used for testing ') }} +
@@ -55,7 +60,8 @@
- + @@ -65,7 +71,8 @@
-
@@ -75,7 +82,8 @@
-
@@ -84,8 +92,10 @@
- - {{ __('Enter your Stripe endpoint-test-secret-key') }} +
@@ -94,7 +104,8 @@
- + @@ -103,23 +114,23 @@
- -
-
+
+
- -
-
- - + +
+
+ + +
-