refactor: 💄 Changed model.getValueByKey -> using laravel config system (At App-Service-Provider)
This commit is contained in:
parent
8d03cf8322
commit
4c2696ca6b
|
@ -53,9 +53,16 @@ class AppServiceProvider extends ServiceProvider
|
||||||
// Set Discord-API Config
|
// Set Discord-API Config
|
||||||
config(['services.discord.client_id' => Settings::getValueByKey('SETTINGS::DISCORD:CLIENT_ID')]);
|
config(['services.discord.client_id' => Settings::getValueByKey('SETTINGS::DISCORD:CLIENT_ID')]);
|
||||||
config(['services.discord.client_secret' => Settings::getValueByKey('SETTINGS::DISCORD:CLIENT_SECRET')]);
|
config(['services.discord.client_secret' => Settings::getValueByKey('SETTINGS::DISCORD:CLIENT_SECRET')]);
|
||||||
|
config(['services.discord.SETTINGS::SYSTEM:SERVER_CREATE_CHARGE_FIRST_HOUR' => 'test']);
|
||||||
|
|
||||||
//// Set Recaptcha API Config
|
// Set Recaptcha API Config
|
||||||
config(['recaptcha.api_site_key' => Settings::getValueByKey('SETTINGS::RECAPTCHA:SITE_KEY')]);
|
config(['recaptcha.api_site_key' => Settings::getValueByKey('SETTINGS::RECAPTCHA:SITE_KEY')]);
|
||||||
config(['recaptcha.api_secret_key' => Settings::getValueByKey('SETTINGS::RECAPTCHA:SECRET_KEY')]);
|
config(['recaptcha.api_secret_key' => Settings::getValueByKey('SETTINGS::RECAPTCHA:SECRET_KEY')]);
|
||||||
|
|
||||||
|
// Set all configs from database
|
||||||
|
$settings = Settings::all();
|
||||||
|
foreach ($settings as $setting) {
|
||||||
|
config([$setting->key => $setting->value]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="company-name">{{ __('Enter your companys name') }}</label>
|
<label for="company-name">{{ __('Enter your companys name') }}</label>
|
||||||
<input x-model="company-name" id="company-name" name="company-name" type="text" required
|
<input x-model="company-name" id="company-name" name="company-name" type="text" required
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::INVOICE:COMPANY_NAME") }}"
|
value="{{ config('SETTINGS::INVOICE:COMPANY_NAME') }}"
|
||||||
class="form-control @error('company-name') is-invalid @enderror">
|
class="form-control @error('company-name') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="company-address">{{ __('Enter your companys address') }}</label>
|
<label for="company-address">{{ __('Enter your companys address') }}</label>
|
||||||
<input x-model="company-address" id="company-address" name="company-address" type="text"
|
<input x-model="company-address" id="company-address" name="company-address" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::INVOICE:COMPANY_ADDRESS") }}"
|
value="{{ config('SETTINGS::INVOICE:COMPANY_ADDRESS') }}"
|
||||||
class="form-control @error('company-address') is-invalid @enderror">
|
class="form-control @error('company-address') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="company-phone">{{ __('Enter your companys phone number') }}</label>
|
<label for="company-phone">{{ __('Enter your companys phone number') }}</label>
|
||||||
<input x-model="company-phone" id="company-phone" name="company-phone" type="text"
|
<input x-model="company-phone" id="company-phone" name="company-phone" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::INVOICE:COMPANY_PHONE") }}"
|
value="{{ config('SETTINGS::INVOICE:COMPANY_PHONE') }}"
|
||||||
class="form-control @error('company-phone') is-invalid @enderror">
|
class="form-control @error('company-phone') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="company-vat">{{ __('Enter your companys VAT id') }}</label>
|
<label for="company-vat">{{ __('Enter your companys VAT id') }}</label>
|
||||||
<input x-model="company-vat" id="company-vat" name="company-vat" type="text"
|
<input x-model="company-vat" id="company-vat" name="company-vat" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::INVOICE:COMPANY_VAT") }}"
|
value="{{ config('SETTINGS::INVOICE:COMPANY_VAT') }}"
|
||||||
class="form-control @error('company-vat') is-invalid @enderror">
|
class="form-control @error('company-vat') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="company-mail">{{ __('Enter your companys email address') }}</label>
|
<label for="company-mail">{{ __('Enter your companys email address') }}</label>
|
||||||
<input x-model="company-mail" id="company-mail" name="company-mail" type="text"
|
<input x-model="company-mail" id="company-mail" name="company-mail" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::INVOICE:COMPANY_MAIL") }}"
|
value="{{ config('SETTINGS::INVOICE:COMPANY_MAIL') }}"
|
||||||
class="form-control @error('company-mail') is-invalid @enderror">
|
class="form-control @error('company-mail') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="company-web">{{ __('Enter your companys website') }}</label>
|
<label for="company-web">{{ __('Enter your companys website') }}</label>
|
||||||
<input x-model="company-web" id="company-web" name="company-web" type="text"
|
<input x-model="company-web" id="company-web" name="company-web" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::INVOICE:COMPANY_WEBSITE") }}"
|
value="{{ config('SETTINGS::INVOICE:COMPANY_WEBSITE') }}"
|
||||||
class="form-control @error('company-web') is-invalid @enderror">
|
class="form-control @error('company-web') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="invoice-prefix">{{ __('Enter your custom invoice prefix') }}</label>
|
<label for="invoice-prefix">{{ __('Enter your custom invoice prefix') }}</label>
|
||||||
<input x-model="invoice-prefix" id="invoice-prefix" name="invoice-prefix" type="text" required
|
<input x-model="invoice-prefix" id="invoice-prefix" name="invoice-prefix" type="text" required
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::INVOICE:PREFIX") }}"
|
value="{{ config('SETTINGS::INVOICE:PREFIX') }}"
|
||||||
class="form-control @error('invoice-prefix') is-invalid @enderror">
|
class="form-control @error('invoice-prefix') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -101,4 +101,3 @@
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -8,33 +8,27 @@
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<!-- AVAILABLE LANGUAGES -->
|
<!-- AVAILABLE LANGUAGES -->
|
||||||
<label for="languages">{{__("Available languages")}}:</label>
|
<label for="languages">{{ __('Available languages') }}:</label>
|
||||||
|
|
||||||
<select id="languages" style="width:100%"
|
<select id="languages" style="width:100%" class="custom-select" name="languages[]" required
|
||||||
class="custom-select" name="languages[]"
|
|
||||||
required
|
|
||||||
multiple="multiple" autocomplete="off">
|
multiple="multiple" autocomplete="off">
|
||||||
@foreach(config("app.available_locales") as $lang)
|
@foreach (config('app.available_locales') as $lang)
|
||||||
<option value="{{ $lang }}">{{ __($lang) }}</option>
|
<option value="{{ $lang }}">{{ __($lang) }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<!-- DEFAULT LANGUAGE -->
|
<!-- DEFAULT LANGUAGE -->
|
||||||
<label for="defaultLanguage">{{__("Default language")}}: <i data-toggle="popover"
|
<label for="defaultLanguage">{{ __('Default language') }}: <i data-toggle="popover"
|
||||||
data-trigger="hover"
|
data-trigger="hover"
|
||||||
data-content="{{ __('The fallback Language, if something goes wrong') }}"
|
data-content="{{ __('The fallback Language, if something goes wrong') }}"
|
||||||
class="fas fa-info-circle"></i></label>
|
class="fas fa-info-circle"></i></label>
|
||||||
|
|
||||||
<select id="defaultLanguage" style="width:100%"
|
<select id="defaultLanguage" style="width:100%" class="custom-select" name="defaultLanguage"
|
||||||
class="custom-select" name="defaultLanguage"
|
required autocomplete="off">
|
||||||
required
|
<option value="{{ config('SETTINGS::LOCALE:DEFAULT') }}" selected>
|
||||||
autocomplete="off">
|
{{ __(config('SETTINGS::LOCALE:DEFAULT')) }}</option>
|
||||||
<option
|
@foreach (config('app.available_locales') as $lang)
|
||||||
value="{{\App\Models\Settings::getValueByKey("SETTINGS::LOCALE:DEFAULT")}}"
|
|
||||||
selected>
|
|
||||||
{{__(\App\Models\Settings::getValueByKey("SETTINGS::LOCALE:DEFAULT"))}}</option>
|
|
||||||
@foreach(config("app.available_locales") as $lang)
|
|
||||||
<option value="{{ $lang }}">{{ __($lang) }}</option>
|
<option value="{{ $lang }}">{{ __($lang) }}</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
|
@ -46,8 +40,7 @@
|
||||||
data-content="{{ __('The Language of the Datatables. Grab the Language-Codes from here') }} https://datatables.net/plug-ins/i18n/"
|
data-content="{{ __('The Language of the Datatables. Grab the Language-Codes from here') }} https://datatables.net/plug-ins/i18n/"
|
||||||
class="fas fa-info-circle"></i></label>
|
class="fas fa-info-circle"></i></label>
|
||||||
<input x-model="datatable-language" id="datatable-language" name="datatable-language" type="text"
|
<input x-model="datatable-language" id="datatable-language" name="datatable-language" type="text"
|
||||||
required
|
required value="{{ config('SETTINGS::LOCALE:DATATABLES') }}"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::LOCALE:DATATABLES") }}"
|
|
||||||
class="form-control @error('datatable-language') is-invalid @enderror">
|
class="form-control @error('datatable-language') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -55,10 +48,8 @@
|
||||||
<!-- AUTO TRANSLATE -->
|
<!-- AUTO TRANSLATE -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input value="true" id="autotranslate" name="autotranslate"
|
<input value="true" id="autotranslate" name="autotranslate"
|
||||||
{{(\App\Models\Settings::getValueByKey("SETTINGS::LOCALE:DYNAMIC")=="true"?"checked":"")}}
|
{{ config('SETTINGS::LOCALE:DYNAMIC') == 'true' ? 'checked' : '' }} type="checkbox">
|
||||||
type="checkbox">
|
<label for="autotranslate">{{ __('Auto-translate') }} <i data-toggle="popover" data-trigger="hover"
|
||||||
<label for="autotranslate">{{__('Auto-translate')}} <i data-toggle="popover"
|
|
||||||
data-trigger="hover"
|
|
||||||
data-content="{{ __('If this is checked, the Dashboard will translate itself to the Clients language, if available') }}"
|
data-content="{{ __('If this is checked, the Dashboard will translate itself to the Clients language, if available') }}"
|
||||||
class="fas fa-info-circle"></i></label>
|
class="fas fa-info-circle"></i></label>
|
||||||
|
|
||||||
|
@ -66,11 +57,9 @@
|
||||||
|
|
||||||
<!-- CLIENTS CAN CHANGE -->
|
<!-- CLIENTS CAN CHANGE -->
|
||||||
<input value="true" id="canClientChangeLanguage" name="canClientChangeLanguage"
|
<input value="true" id="canClientChangeLanguage" name="canClientChangeLanguage"
|
||||||
{{(\App\Models\Settings::getValueByKey("SETTINGS::LOCALE:CLIENTS_CAN_CHANGE")=="true"?"checked":"")}}
|
{{ config('SETTINGS::LOCALE:CLIENTS_CAN_CHANGE') == 'true' ? 'checked' : '' }} type="checkbox">
|
||||||
type="checkbox">
|
|
||||||
<label for="canClientChangeLanguage">{{ __('Let the Client change the Language') }} <i
|
<label for="canClientChangeLanguage">{{ __('Let the Client change the Language') }} <i
|
||||||
data-toggle="popover"
|
data-toggle="popover" data-trigger="hover"
|
||||||
data-trigger="hover"
|
|
||||||
data-content="{{ __('If this is checked, Clients will have the ability to manually change their Dashboard language') }}"
|
data-content="{{ __('If this is checked, Clients will have the ability to manually change their Dashboard language') }}"
|
||||||
class="fas fa-info-circle"></i></label>
|
class="fas fa-info-circle"></i></label>
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<label
|
<label
|
||||||
for="phpmyadmin-url">{{ __('The URL to your PHPMYADMIN Panel. Must not end with a /, leave blank to remove database button') }}</label>
|
for="phpmyadmin-url">{{ __('The URL to your PHPMYADMIN Panel. Must not end with a /, leave blank to remove database button') }}</label>
|
||||||
<input x-model="phpmyadmin-url" id="phpmyadmin-url" name="phpmyadmin-url" type="text"
|
<input x-model="phpmyadmin-url" id="phpmyadmin-url" name="phpmyadmin-url" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::MISC:PHPMYADMIN:URL") }}"
|
value="{{ config('SETTINGS::MISC:PHPMYADMIN:URL') }}"
|
||||||
class="form-control @error('phpmyadmin-url') is-invalid @enderror">
|
class="form-control @error('phpmyadmin-url') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -47,8 +47,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<img class="mb-3" height="50"
|
<img class="mb-3" height="50" src="{{ url('/images/discord_logo.png') }}">
|
||||||
src="{{ url('/images/discord_logo.png') }}">
|
|
||||||
|
|
||||||
<!-- DISCORD -->
|
<!-- DISCORD -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -56,7 +55,7 @@
|
||||||
<label for="discord-client-id">{{ __('Your Discord client-id') }} ( Discord API Credentials -
|
<label for="discord-client-id">{{ __('Your Discord client-id') }} ( Discord API Credentials -
|
||||||
https://discordapp.com/developers/applications/ ) </label>
|
https://discordapp.com/developers/applications/ ) </label>
|
||||||
<input x-model="discord-client-id" id="discord-client-id" name="discord-client-id" type="text"
|
<input x-model="discord-client-id" id="discord-client-id" name="discord-client-id" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::DISCORD:CLIENT_ID") }}"
|
value="{{ config('SETTINGS::DISCORD:CLIENT_ID') }}"
|
||||||
class="form-control @error('discord-client-id') is-invalid @enderror">
|
class="form-control @error('discord-client-id') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -64,8 +63,7 @@
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="discord-client-secret">{{ __('Your Discord client-secret') }} </label>
|
<label for="discord-client-secret">{{ __('Your Discord client-secret') }} </label>
|
||||||
<input x-model="discord-client-secret" id="discord-client-secret" name="discord-client-secret"
|
<input x-model="discord-client-secret" id="discord-client-secret" name="discord-client-secret"
|
||||||
type="text"
|
type="text" value="{{ config('SETTINGS::DISCORD:CLIENT_SECRET') }}"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::DISCORD:CLIENT_SECRET") }}"
|
|
||||||
class="form-control @error('discord-client-secret') is-invalid @enderror">
|
class="form-control @error('discord-client-secret') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -73,9 +71,8 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="discord-client-secret">{{ __('Your Discord Bot-token') }} </label>
|
<label for="discord-client-secret">{{ __('Your Discord Bot-token') }} </label>
|
||||||
<input x-model="discord-bot-token" id="discord-bot-token" name="discord-bot-token"
|
<input x-model="discord-bot-token" id="discord-bot-token" name="discord-bot-token" type="text"
|
||||||
type="text"
|
value="{{ config('SETTINGS::DISCORD:BOT_TOKEN') }}"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::DISCORD:BOT_TOKEN") }}"
|
|
||||||
class="form-control @error('discord-bot-token') is-invalid @enderror">
|
class="form-control @error('discord-bot-token') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -83,9 +80,8 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="discord-client-secret">{{ __('Your Discord Guild-ID') }} </label>
|
<label for="discord-client-secret">{{ __('Your Discord Guild-ID') }} </label>
|
||||||
<input x-model="discord-guild-id" id="discord-guild-id" name="discord-guild-id"
|
<input x-model="discord-guild-id" id="discord-guild-id" name="discord-guild-id" type="number"
|
||||||
type="number"
|
value="{{ config('SETTINGS::DISCORD:GUILD_ID') }}"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::DISCORD:GUILD_ID") }}"
|
|
||||||
class="form-control @error('discord-guild-id') is-invalid @enderror">
|
class="form-control @error('discord-guild-id') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -94,18 +90,18 @@
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="discord-invite-url">{{ __('Your Discord Server iniviation url') }} </label>
|
<label for="discord-invite-url">{{ __('Your Discord Server iniviation url') }} </label>
|
||||||
<input x-model="discord-invite-url" id="discord-invite-url" name="discord-invite-url"
|
<input x-model="discord-invite-url" id="discord-invite-url" name="discord-invite-url"
|
||||||
type="text"
|
type="text" value="{{ config('SETTINGS::DISCORD:INVITE_URL') }}"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::DISCORD:INVITE_URL") }}"
|
|
||||||
class="form-control @error('discord-invite-url') is-invalid @enderror">
|
class="form-control @error('discord-invite-url') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="discord-role-id">{{ __('Discord role that will be assigned to users when they register (optional)')}} </label>
|
<label
|
||||||
<input x-model="discord-role-id" id="discord-role-id" name="discord-role-id"
|
for="discord-role-id">{{ __('Discord role that will be assigned to users when they register (optional)') }}
|
||||||
type="number"
|
</label>
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::DISCORD:ROLE_ID") }}"
|
<input x-model="discord-role-id" id="discord-role-id" name="discord-role-id" type="number"
|
||||||
|
value="{{ config('SETTINGS::DISCORD:ROLE_ID') }}"
|
||||||
class="form-control @error('discord-role-id') is-invalid @enderror">
|
class="form-control @error('discord-role-id') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,14 +6,13 @@
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<img class="mb-3" height="50"
|
<img class="mb-3" height="50" src="{{ url('/images/paypal_logo.png') }}">
|
||||||
src="{{ url('/images/paypal_logo.png') }}">
|
|
||||||
<!-- PAYPAL -->
|
<!-- PAYPAL -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="paypal-client-id">{{ __('Enter your PayPal Client_ID') }}</label>
|
<label for="paypal-client-id">{{ __('Enter your PayPal Client_ID') }}</label>
|
||||||
<input x-model="paypal-client-id" id="paypal-client-id" name="paypal-client-id" type="text"
|
<input x-model="paypal-client-id" id="paypal-client-id" name="paypal-client-id" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:PAYPAL:CLIENT_ID") }}"
|
value="{{ config('SETTINGS::PAYMENTS:PAYPAL:CLIENT_ID') }}"
|
||||||
class="form-control @error('paypal-client-id') is-invalid @enderror">
|
class="form-control @error('paypal-client-id') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -24,8 +23,7 @@
|
||||||
<label for="paypal-client-secret">{{ __('Your PayPal Secret-Key') }} (
|
<label for="paypal-client-secret">{{ __('Your PayPal Secret-Key') }} (
|
||||||
https://developer.paypal.com/docs/integration/direct/rest/ ) </label>
|
https://developer.paypal.com/docs/integration/direct/rest/ ) </label>
|
||||||
<input x-model="paypal-client-secret" id="paypal-client-secret" name="paypal-client-secret"
|
<input x-model="paypal-client-secret" id="paypal-client-secret" name="paypal-client-secret"
|
||||||
type="text"
|
type="text" value="{{ config('SETTINGS::PAYMENTS:PAYPAL:SECRET') }}"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:PAYPAL:SECRET") }}"
|
|
||||||
class="form-control @error('paypal-client-secret') is-invalid @enderror">
|
class="form-control @error('paypal-client-secret') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -36,7 +34,7 @@
|
||||||
<label
|
<label
|
||||||
for="paypal-sandbox-id">{{ __('Your PayPal SANDBOX Client-ID used for testing') }}</label>
|
for="paypal-sandbox-id">{{ __('Your PayPal SANDBOX Client-ID used for testing') }}</label>
|
||||||
<input x-model="paypal-sandbox-id" id="paypal-sandbox-id" name="paypal-sandbox-id" type="text"
|
<input x-model="paypal-sandbox-id" id="paypal-sandbox-id" name="paypal-sandbox-id" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:PAYPAL:SANDBOX_CLIENT_ID") }}"
|
value="{{ config('SETTINGS::PAYMENTS:PAYPAL:SANDBOX_CLIENT_ID') }}"
|
||||||
class="form-control @error('paypal-sandbox-id') is-invalid @enderror">
|
class="form-control @error('paypal-sandbox-id') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -47,23 +45,21 @@
|
||||||
<label
|
<label
|
||||||
for="paypal-sandbox-secret">{{ __('Your PayPal SANDBOX Secret-Key used for testing ') }}</label>
|
for="paypal-sandbox-secret">{{ __('Your PayPal SANDBOX Secret-Key used for testing ') }}</label>
|
||||||
<input x-model="paypal-sandbox-secret" id="paypal-sandbox-secret" name="paypal-sandbox-secret"
|
<input x-model="paypal-sandbox-secret" id="paypal-sandbox-secret" name="paypal-sandbox-secret"
|
||||||
type="text"
|
type="text" value="{{ config('SETTINGS::PAYMENTS:PAYPAL:SANDBOX_SECRET') }}"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:PAYPAL:SANDBOX_SECRET") }}"
|
|
||||||
class="form-control @error('paypal-sandbox-secret') is-invalid @enderror">
|
class="form-control @error('paypal-sandbox-secret') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
<img class="mb-3" height="50"
|
<img class="mb-3" height="50" src="{{ url('/images/stripe_logo.png') }}">
|
||||||
src="{{ url('/images/stripe_logo.png') }}">
|
|
||||||
<!-- STRIPE -->
|
<!-- STRIPE -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="stripe-secret">{{ __('Your Stripe Secret-Key') }} (
|
<label for="stripe-secret">{{ __('Your Stripe Secret-Key') }} (
|
||||||
https://dashboard.stripe.com/account/apikeys )</label>
|
https://dashboard.stripe.com/account/apikeys )</label>
|
||||||
<input x-model="stripe-secret" id="stripe-secret" name="stripe-secret" type="text"
|
<input x-model="stripe-secret" id="stripe-secret" name="stripe-secret" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:STRIPE:SECRET") }}"
|
value="{{ config('SETTINGS::PAYMENTS:STRIPE:SECRET') }}"
|
||||||
class="form-control @error('stripe-secret') is-invalid @enderror">
|
class="form-control @error('stripe-secret') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -73,7 +69,7 @@
|
||||||
<label for="stripe-endpoint-secret">{{ __('Enter your Stripe endpoint-secret-key') }}</label>
|
<label for="stripe-endpoint-secret">{{ __('Enter your Stripe endpoint-secret-key') }}</label>
|
||||||
<input x-model="stripe-endpoint-secret" id="stripe-endpoint-secret"
|
<input x-model="stripe-endpoint-secret" id="stripe-endpoint-secret"
|
||||||
name="stripe-endpoint-secret" type="text"
|
name="stripe-endpoint-secret" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:STRIPE:ENDPOINT_SECRET") }}"
|
value="{{ config('SETTINGS::PAYMENTS:STRIPE:ENDPOINT_SECRET') }}"
|
||||||
class="form-control @error('stripe-endpoint-secret') is-invalid @enderror">
|
class="form-control @error('stripe-endpoint-secret') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -83,8 +79,7 @@
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="stripe-test-secret">{{ __('Enter your Stripe test-secret-key') }}</label>
|
<label for="stripe-test-secret">{{ __('Enter your Stripe test-secret-key') }}</label>
|
||||||
<input x-model="stripe-test-secret" id="stripe-test-secret" name="stripe-test-secret"
|
<input x-model="stripe-test-secret" id="stripe-test-secret" name="stripe-test-secret"
|
||||||
type="text"
|
type="text" value="{{ config('SETTINGS::PAYMENTS:STRIPE:TEST_SECRET') }}"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:STRIPE:TEST_SECRET") }}"
|
|
||||||
class="form-control @error('stripe-test-secret') is-invalid @enderror">
|
class="form-control @error('stripe-test-secret') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -96,7 +91,7 @@
|
||||||
for="stripe-endpoint-test-secret">{{ __('Enter your Stripe endpoint-test-secret-key') }}</label>
|
for="stripe-endpoint-test-secret">{{ __('Enter your Stripe endpoint-test-secret-key') }}</label>
|
||||||
<input x-model="stripe-endpoint-test-secret" id="stripe-endpoint-test-secret"
|
<input x-model="stripe-endpoint-test-secret" id="stripe-endpoint-test-secret"
|
||||||
name="stripe-endpoint-test-secret" type="text"
|
name="stripe-endpoint-test-secret" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:STRIPE:ENDPOINT_TEST_SECRET") }}"
|
value="{{ config('SETTINGS::PAYMENTS:STRIPE:ENDPOINT_TEST_SECRET') }}"
|
||||||
class="form-control @error('stripe-endpoint-test-secret') is-invalid @enderror">
|
class="form-control @error('stripe-endpoint-test-secret') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -104,10 +99,11 @@
|
||||||
<!-- STRIPE -->
|
<!-- STRIPE -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="custom-control mb-3">
|
<div class="custom-control mb-3">
|
||||||
<label for="stripe-methods">{{ __('Comma seperated list of payment methods that are enabled')}}
|
<label
|
||||||
|
for="stripe-methods">{{ __('Comma seperated list of payment methods that are enabled') }}
|
||||||
(https://stripe.com/docs/payments/payment-methods/integration-options)</label>
|
(https://stripe.com/docs/payments/payment-methods/integration-options)</label>
|
||||||
<input x-model="stripe-methods" id="stripe-methods" name="stripe-methods" type="text"
|
<input x-model="stripe-methods" id="stripe-methods" name="stripe-methods" type="text"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:STRIPE:METHODS") }}"
|
value="{{ config('SETTINGS::PAYMENTS:STRIPE:METHODS') }}"
|
||||||
class="form-control @error('stripe-methods') is-invalid @enderror">
|
class="form-control @error('stripe-methods') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -124,7 +120,7 @@
|
||||||
<label
|
<label
|
||||||
for="sales_tax">{{ __('The %-value of tax that will be added to the product price on checkout') }}</label>
|
for="sales_tax">{{ __('The %-value of tax that will be added to the product price on checkout') }}</label>
|
||||||
<input x-model="sales_tax" id="sales_tax" name="sales_tax" type="number"
|
<input x-model="sales_tax" id="sales_tax" name="sales_tax" type="number"
|
||||||
value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:SALES_TAX") }}"
|
value="{{ config('SETTINGS::PAYMENTS:SALES_TAX') }}"
|
||||||
class="form-control @error('sales_tax') is-invalid @enderror">
|
class="form-control @error('sales_tax') is-invalid @enderror">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -137,4 +133,3 @@
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -49,11 +49,11 @@
|
||||||
class="fas fa-home mr-2"></i>{{ __('Home') }}</a>
|
class="fas fa-home mr-2"></i>{{ __('Home') }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item d-none d-sm-inline-block">
|
<li class="nav-item d-none d-sm-inline-block">
|
||||||
<a href="{{ \App\Models\Settings::getValueByKey("SETTINGS::DISCORD:INVITE_URL") }}" class="nav-link" target="__blank"><i
|
<a href="{{ config('SETTINGS::DISCORD:INVITE_URL') }}" class="nav-link"
|
||||||
class="fab fa-discord mr-2"></i>{{ __('Discord') }}</a>
|
target="__blank"><i class="fab fa-discord mr-2"></i>{{ __('Discord') }}</a>
|
||||||
</li>
|
</li>
|
||||||
<!-- Language Selection -->
|
<!-- Language Selection -->
|
||||||
@if (\App\Models\Settings::getValueByKey("SETTINGS::LOCALE:CLIENTS_CAN_CHANGE")=='true')
|
@if (config('SETTINGS::LOCALE:CLIENTS_CAN_CHANGE') == 'true')
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link" href="#" id="languageDropdown" role="button" data-toggle="dropdown"
|
<a class="nav-link" href="#" id="languageDropdown" role="button" data-toggle="dropdown"
|
||||||
aria-haspopup="true" aria-expanded="false">
|
aria-haspopup="true" aria-expanded="false">
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
aria-labelledby="changeLocale">
|
aria-labelledby="changeLocale">
|
||||||
<form method="post" action="{{ route('changeLocale') }}" class="nav-item text-center">
|
<form method="post" action="{{ route('changeLocale') }}" class="nav-item text-center">
|
||||||
@csrf
|
@csrf
|
||||||
@foreach (json_decode(\App\Models\Settings::getValueByKey("SETTINGS::LOCALE:AVAILABLE")) as $key)
|
@foreach (json_decode(config('SETTINGS::LOCALE:AVAILABLE')) as $key)
|
||||||
<button class="dropdown-item" name="inputLocale" value="{{ $key }}">
|
<button class="dropdown-item" name="inputLocale" value="{{ $key }}">
|
||||||
{{ __($key) }}
|
{{ __($key) }}
|
||||||
</button>
|
</button>
|
||||||
|
@ -211,7 +211,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@if ((\App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:PAYPAL:SECRET") && \App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:PAYPAL:CLIENT_ID")) || env('APP_ENV', 'local') == 'local')
|
@if ((config('SETTINGS::PAYMENTS:PAYPAL:SECRET') && config('SETTINGS::PAYMENTS:PAYPAL:CLIENT_ID')) || env('APP_ENV', 'local') == 'local')
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="{{ route('store.index') }}" class="nav-link @if (Request::routeIs('store.*') || Request::routeIs('checkout')) active @endif">
|
<a href="{{ route('store.index') }}" class="nav-link @if (Request::routeIs('store.*') || Request::routeIs('checkout')) active @endif">
|
||||||
<i class="nav-icon fa fa-coins"></i>
|
<i class="nav-icon fa fa-coins"></i>
|
||||||
|
@ -258,7 +258,8 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="{{ route('admin.servers.index') }}" class="nav-link @if (Request::routeIs('admin.servers.*')) active @endif">
|
<a href="{{ route('admin.servers.index') }}"
|
||||||
|
class="nav-link @if (Request::routeIs('admin.servers.*')) active @endif">
|
||||||
<i class="nav-icon fas fa-server"></i>
|
<i class="nav-icon fas fa-server"></i>
|
||||||
<p>{{ __('Servers') }}</p>
|
<p>{{ __('Servers') }}</p>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<ol class="breadcrumb float-sm-right">
|
<ol class="breadcrumb float-sm-right">
|
||||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Dashboard') }}</a></li>
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Dashboard') }}</a></li>
|
||||||
<li class="breadcrumb-item"><a class="text-muted" href="{{route('profile.index')}}">{{__('Profile')}}</a>
|
<li class="breadcrumb-item"><a class="text-muted"
|
||||||
|
href="{{ route('profile.index') }}">{{ __('Profile') }}</a>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,24 +29,32 @@
|
||||||
<div class="col-lg-12 px-0">
|
<div class="col-lg-12 px-0">
|
||||||
@if (!Auth::user()->hasVerifiedEmail() && strtolower($force_email_verification) == 'true')
|
@if (!Auth::user()->hasVerifiedEmail() && strtolower($force_email_verification) == 'true')
|
||||||
<div class="alert alert-warning p-2 m-2">
|
<div class="alert alert-warning p-2 m-2">
|
||||||
<h5><i class="icon fas fa-exclamation-circle"></i>{{__('Required Email verification!')}}</h5>
|
<h5><i class="icon fas fa-exclamation-circle"></i>{{ __('Required Email verification!') }}
|
||||||
|
</h5>
|
||||||
{{ __('You have not yet verified your email address') }}
|
{{ __('You have not yet verified your email address') }}
|
||||||
<a class="text-primary" href="{{route('verification.send')}}">{{__('Click here to resend verification email')}}</a> <br>
|
<a class="text-primary"
|
||||||
|
href="{{ route('verification.send') }}">{{ __('Click here to resend verification email') }}</a>
|
||||||
|
<br>
|
||||||
{{ __('Please contact support If you didnt receive your verification email.') }}
|
{{ __('Please contact support If you didnt receive your verification email.') }}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (is_null(Auth::user()->discordUser) && strtolower($force_discord_verification) == 'true')
|
@if (is_null(Auth::user()->discordUser) && strtolower($force_discord_verification) == 'true')
|
||||||
@if(!empty(\App\Models\Settings::getValueByKey("SETTINGS::DISCORD:CLIENT_ID")) && !empty(\App\Models\Settings::getValueByKey("SETTINGS::DISCORD:CLIENT_SECRET")))
|
@if (!empty(config('SETTINGS::DISCORD:CLIENT_ID')) && !empty(config('SETTINGS::DISCORD:CLIENT_SECRET')))
|
||||||
<div class="alert alert-warning p-2 m-2">
|
<div class="alert alert-warning p-2 m-2">
|
||||||
<h5><i class="icon fas fa-exclamation-circle"></i>{{__('Required Discord verification!')}}</h5>
|
<h5><i
|
||||||
|
class="icon fas fa-exclamation-circle"></i>{{ __('Required Discord verification!') }}
|
||||||
|
</h5>
|
||||||
{{ __('You have not yet verified your discord account') }}
|
{{ __('You have not yet verified your discord account') }}
|
||||||
<a class="text-primary" href="{{route('auth.redirect')}}">{{__('Login with discord')}}</a> <br>
|
<a class="text-primary"
|
||||||
|
href="{{ route('auth.redirect') }}">{{ __('Login with discord') }}</a> <br>
|
||||||
{{ __('Please contact support If you face any issues.') }}
|
{{ __('Please contact support If you face any issues.') }}
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div class="alert alert-danger p-2 m-2">
|
<div class="alert alert-danger p-2 m-2">
|
||||||
<h5><i class="icon fas fa-exclamation-circle"></i>{{__('Required Discord verification!')}}</h5>
|
<h5><i
|
||||||
|
class="icon fas fa-exclamation-circle"></i>{{ __('Required Discord verification!') }}
|
||||||
|
</h5>
|
||||||
{{ __('Due to system settings you are required to verify your discord account!') }} <br>
|
{{ __('Due to system settings you are required to verify your discord account!') }} <br>
|
||||||
{{ __('It looks like this hasnt been set-up correctly! Please contact support.') }}'
|
{{ __('It looks like this hasnt been set-up correctly! Please contact support.') }}'
|
||||||
</div>
|
</div>
|
||||||
|
@ -64,42 +73,42 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 col-sm-auto mb-4">
|
<div class="col-12 col-sm-auto mb-4">
|
||||||
<div class="slim rounded-circle border-secondary border text-gray-dark"
|
<div class="slim rounded-circle border-secondary border text-gray-dark"
|
||||||
data-label="Change your avatar"
|
data-label="Change your avatar" data-max-file-size="3"
|
||||||
data-max-file-size="3"
|
data-save-initial-image="true" style="width: 140px;height:140px; cursor: pointer"
|
||||||
data-save-initial-image="true"
|
|
||||||
style="width: 140px;height:140px; cursor: pointer"
|
|
||||||
data-size="140,140">
|
data-size="140,140">
|
||||||
<img src="{{ $user->getAvatar() }}" alt="avatar">
|
<img src="{{ $user->getAvatar() }}" alt="avatar">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col d-flex flex-column flex-sm-row justify-content-between mb-3">
|
<div class="col d-flex flex-column flex-sm-row justify-content-between mb-3">
|
||||||
<div class="text-center text-sm-left mb-2 mb-sm-0"><h4
|
<div class="text-center text-sm-left mb-2 mb-sm-0">
|
||||||
class="pt-sm-2 pb-1 mb-0 text-nowrap">{{$user->name}}</h4>
|
<h4 class="pt-sm-2 pb-1 mb-0 text-nowrap">{{ $user->name }}</h4>
|
||||||
<p class="mb-0">{{ $user->email }}
|
<p class="mb-0">{{ $user->email }}
|
||||||
@if ($user->hasVerifiedEmail())
|
@if ($user->hasVerifiedEmail())
|
||||||
<i data-toggle="popover" data-trigger="hover" data-content="Verified"
|
<i data-toggle="popover" data-trigger="hover" data-content="Verified"
|
||||||
class="text-success fas fa-check-circle"></i>
|
class="text-success fas fa-check-circle"></i>
|
||||||
@else
|
@else
|
||||||
<i data-toggle="popover" data-trigger="hover"
|
<i data-toggle="popover" data-trigger="hover" data-content="Not verified"
|
||||||
data-content="Not verified"
|
|
||||||
class="text-danger fas fa-exclamation-circle"></i>
|
class="text-danger fas fa-exclamation-circle"></i>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<span class="badge badge-primary"><i class="fa fa-coins mr-2"></i>{{$user->Credits()}}</span>
|
<span class="badge badge-primary"><i
|
||||||
|
class="fa fa-coins mr-2"></i>{{ $user->Credits() }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-center text-sm-right"><span
|
<div class="text-center text-sm-right"><span
|
||||||
class="badge badge-secondary">{{ $user->role }}</span>
|
class="badge badge-secondary">{{ $user->role }}</span>
|
||||||
<div class="text-muted"><small>{{$user->created_at->isoFormat('LL')}}</small>
|
<div class="text-muted">
|
||||||
|
<small>{{ $user->created_at->isoFormat('LL') }}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="nav-item"><a href="javasript:void(0)" class="active nav-link">{{__('Settings')}}</a>
|
<li class="nav-item"><a href="javasript:void(0)"
|
||||||
|
class="active nav-link">{{ __('Settings') }}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content pt-3">
|
<div class="tab-content pt-3">
|
||||||
|
@ -110,8 +119,8 @@
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="form-group"><label>{{ __('Name') }}</label> <input
|
<div class="form-group"><label>{{ __('Name') }}</label> <input
|
||||||
class="form-control @error('name') is-invalid @enderror"
|
class="form-control @error('name') is-invalid @enderror"
|
||||||
type="text" name="name"
|
type="text" name="name" placeholder="{{ $user->name }}"
|
||||||
placeholder="{{$user->name}}" value="{{$user->name}}">
|
value="{{ $user->name }}">
|
||||||
|
|
||||||
@error('name')
|
@error('name')
|
||||||
<div class="invalid-feedback">
|
<div class="invalid-feedback">
|
||||||
|
@ -125,8 +134,7 @@
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="form-group"><label>{{ __('Email') }}</label> <input
|
<div class="form-group"><label>{{ __('Email') }}</label> <input
|
||||||
class="form-control @error('email') is-invalid @enderror"
|
class="form-control @error('email') is-invalid @enderror"
|
||||||
type="text"
|
type="text" placeholder="{{ $user->email }}" name="email"
|
||||||
placeholder="{{$user->email}}" name="email"
|
|
||||||
value="{{ $user->email }}">
|
value="{{ $user->email }}">
|
||||||
|
|
||||||
@error('email')
|
@error('email')
|
||||||
|
@ -144,10 +152,11 @@
|
||||||
<div class="mb-3"><b>{{ __('Change Password') }}</b></div>
|
<div class="mb-3"><b>{{ __('Change Password') }}</b></div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="form-group"><label>{{__('Current Password')}}</label> <input
|
<div class="form-group">
|
||||||
|
<label>{{ __('Current Password') }}</label>
|
||||||
|
<input
|
||||||
class="form-control @error('current_password') is-invalid @enderror"
|
class="form-control @error('current_password') is-invalid @enderror"
|
||||||
name="current_password" type="password"
|
name="current_password" type="password" placeholder="••••••">
|
||||||
placeholder="••••••">
|
|
||||||
|
|
||||||
@error('current_password')
|
@error('current_password')
|
||||||
<div class="invalid-feedback">
|
<div class="invalid-feedback">
|
||||||
|
@ -159,7 +168,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="form-group"><label>{{__('New Password')}}</label> <input
|
<div class="form-group"><label>{{ __('New Password') }}</label>
|
||||||
|
<input
|
||||||
class="form-control @error('new_password') is-invalid @enderror"
|
class="form-control @error('new_password') is-invalid @enderror"
|
||||||
name="new_password" type="password" placeholder="••••••">
|
name="new_password" type="password" placeholder="••••••">
|
||||||
|
|
||||||
|
@ -173,7 +183,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="form-group"><label>{{__('Confirm Password')}}</span></label>
|
<div class="form-group">
|
||||||
|
<label>{{ __('Confirm Password') }}</span></label>
|
||||||
<input
|
<input
|
||||||
class="form-control @error('new_password_confirmation') is-invalid @enderror"
|
class="form-control @error('new_password_confirmation') is-invalid @enderror"
|
||||||
name="new_password_confirmation" type="password"
|
name="new_password_confirmation" type="password"
|
||||||
|
@ -188,7 +199,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@if(!empty(\App\Models\Settings::getValueByKey("SETTINGS::DISCORD:CLIENT_ID")) && !empty(\App\Models\Settings::getValueByKey("SETTINGS::DISCORD:CLIENT_SECRET")))
|
@if (!empty(config('SETTINGS::DISCORD:CLIENT_ID')) && !empty(config('SETTINGS::DISCORD:CLIENT_SECRET')))
|
||||||
<div class="col-12 col-sm-5 offset-sm-1 mb-3">
|
<div class="col-12 col-sm-5 offset-sm-1 mb-3">
|
||||||
@if (is_null(Auth::user()->discordUser))
|
@if (is_null(Auth::user()->discordUser))
|
||||||
<b>{{ __('Link your discord account!') }}</b>
|
<b>{{ __('Link your discord account!') }}</b>
|
||||||
|
@ -215,18 +226,20 @@
|
||||||
<div class="d-flex justify-content-between">
|
<div class="d-flex justify-content-between">
|
||||||
<div class="p-3">
|
<div class="p-3">
|
||||||
<h3>{{ $user->discordUser->username }}
|
<h3>{{ $user->discordUser->username }}
|
||||||
<sup>{{$user->discordUser->locale}}</sup></h3>
|
<sup>{{ $user->discordUser->locale }}</sup>
|
||||||
|
</h3>
|
||||||
<p>{{ $user->discordUser->id }}
|
<p>{{ $user->discordUser->id }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-3"><img width="100px" height="100px"
|
<div class="p-3"><img width="100px"
|
||||||
class="rounded-circle"
|
height="100px" class="rounded-circle"
|
||||||
src="{{ $user->discordUser->getAvatar() }}"
|
src="{{ $user->discordUser->getAvatar() }}"
|
||||||
alt="avatar"></div>
|
alt="avatar"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-box-footer">
|
<div class="small-box-footer">
|
||||||
<a href="{{ route('auth.redirect') }}">
|
<a href="{{ route('auth.redirect') }}">
|
||||||
<i class="fab fa-discord mr-1"></i>{{__('Re-Sync Discord')}}
|
<i
|
||||||
|
class="fab fa-discord mr-1"></i>{{ __('Re-Sync Discord') }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -238,7 +251,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col d-flex justify-content-end">
|
<div class="col d-flex justify-content-end">
|
||||||
<button class="btn btn-primary" type="submit">{{__('Save Changes')}}</button>
|
<button class="btn btn-primary"
|
||||||
|
type="submit">{{ __('Save Changes') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -55,8 +55,8 @@
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in"
|
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in"
|
||||||
aria-labelledby="dropdownMenuLink">
|
aria-labelledby="dropdownMenuLink">
|
||||||
@if (!empty(\App\Models\Settings::getValueByKey("SETTINGS::MISC:PHPMYADMIN:URL")))
|
@if (!empty(config('SETTINGS::MISC:PHPMYADMIN:URL')))
|
||||||
<a href="{{\App\Models\Settings::getValueByKey("SETTINGS::MISC:PHPMYADMIN:URL") }}"
|
<a href="{{ config('SETTINGS::MISC:PHPMYADMIN:URL') }}"
|
||||||
class="dropdown-item text-info" target="__blank"><i title="manage"
|
class="dropdown-item text-info" target="__blank"><i title="manage"
|
||||||
class="fas fa-database mr-2"></i><span>{{ __('Database') }}</span></a>
|
class="fas fa-database mr-2"></i><span>{{ __('Database') }}</span></a>
|
||||||
@endif
|
@endif
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-footer d-flex align-items-center justify-content-between">
|
<div class="card-footer d-flex align-items-center justify-content-between">
|
||||||
<a href="{{ \App\Models\Settings::getValueByKey("SETTINGS::SYSTEM:PTERODACTYL:URL") }}/server/{{ $server->identifier }}"
|
<a href="{{ config('SETTINGS::SYSTEM:PTERODACTYL:URL') }}/server/{{ $server->identifier }}"
|
||||||
target="__blank"
|
target="__blank"
|
||||||
class="btn btn-info mx-3 w-100 align-items-center justify-content-center d-flex">
|
class="btn btn-info mx-3 w-100 align-items-center justify-content-center d-flex">
|
||||||
<i class="fas fa-tools mr-2"></i>
|
<i class="fas fa-tools mr-2"></i>
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
<p class="lead">{{ __('Payment Methods') }}:</p>
|
<p class="lead">{{ __('Payment Methods') }}:</p>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
@if (\App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:PAYPAL:SECRET")|| \App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:PAYPAL:SANDBOX_SECRET"))
|
@if (config('SETTINGS::PAYMENTS:PAYPAL:SECRET') || config('SETTINGS::PAYMENTS:PAYPAL:SANDBOX_SECRET'))
|
||||||
<label class="text-center " for="paypal">
|
<label class="text-center " for="paypal">
|
||||||
<img class="mb-3" height="50"
|
<img class="mb-3" height="50"
|
||||||
src="{{ url('/images/paypal_logo.png') }}"></br>
|
src="{{ url('/images/paypal_logo.png') }}"></br>
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
</input>
|
</input>
|
||||||
</label>
|
</label>
|
||||||
@endif
|
@endif
|
||||||
@if (\App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:STRIPE:TEST_SECRET") || \App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:STRIPE:SECRET"))
|
@if (config('SETTINGS::PAYMENTS:STRIPE:TEST_SECRET') || config('SETTINGS::PAYMENTS:STRIPE:SECRET'))
|
||||||
<label class="ml-5 text-center " for="stripe">
|
<label class="ml-5 text-center " for="stripe">
|
||||||
<img class="mb-3" height="50"
|
<img class="mb-3" height="50"
|
||||||
src="{{ url('/images/stripe_logo.png') }}" /></br>
|
src="{{ url('/images/stripe_logo.png') }}" /></br>
|
||||||
|
|
Loading…
Reference in a new issue