275 lines
16 KiB
PHP
275 lines
16 KiB
PHP
<div class="tab-pane mt-3" id="misc">
|
|
<form method="POST" enctype="multipart/form-data" class="mb-3"
|
|
action="{{ route('admin.settings.update.miscsettings') }}">
|
|
@csrf
|
|
@method('PATCH')
|
|
|
|
<div class="row">
|
|
|
|
{{-- E-Mail --}}
|
|
<div class="col-md-3 px-3">
|
|
<div class="row mb-2">
|
|
<div class="col text-center">
|
|
<h1>E-Mail</h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="custom-control mb-3 p-0">
|
|
<label for="mailservice">{{ __('Mail Service') }}:
|
|
<i data-toggle="popover" data-trigger="hover"
|
|
data-content="{{ __('The Mailer to send e-mails with') }}" class="fas fa-info-circle"></i>
|
|
</label>
|
|
<select id="mailservice" style="width:100%" class="custom-select" name="mailservice" required
|
|
autocomplete="off" @error('mailservice') is-invalid @enderror>
|
|
@foreach (array_keys(config('mail.mailers')) as $mailer)
|
|
<option value="{{ $mailer }}" @if (config('SETTINGS::MAIL:MAILER') == $mailer) selected
|
|
@endif>{{ __($mailer) }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="mailhost">{{ __('Mail Host') }}:</label>
|
|
<input x-model="mailhost" id="mailhost" name="mailhost" type="text"
|
|
value="{{ config('SETTINGS::MAIL:HOST') }}"
|
|
class="form-control @error('mailhost') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="mailport">{{ __('Mail Port') }}:</label>
|
|
<input x-model="mailhost" id="mailport" name="mailport" type="text"
|
|
value="{{ config('SETTINGS::MAIL:PORT') }}"
|
|
class="form-control @error('mailport') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="mailusername">{{ __('Mail Username') }}:</label>
|
|
<input x-model="mailusername" id="mailusername" name="mailusername" type="text"
|
|
value="{{ config('SETTINGS::MAIL:USERNAME') }}"
|
|
class="form-control @error('mailusername') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="mailpassword">{{ __('Mail Password') }}:</label>
|
|
<input x-model="mailpassword" id="mailpassword" name="mailpassword" type="password"
|
|
value="{{ config('SETTINGS::MAIL:PASSWORD') }}"
|
|
class="form-control @error('mailpassword') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="mailencryption">{{ __('Mail Encryption') }}:</label>
|
|
<input x-model="mailencryption" id="mailencryption" name="mailencryption" type="text"
|
|
value="{{ config('SETTINGS::MAIL:ENCRYPTION') }}"
|
|
class="form-control @error('mailencryption') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="mailfromadress">{{ __('Mail From Adress') }}:</label>
|
|
<input x-model="mailfromadress" id="mailfromadress" name="mailfromadress" type="text"
|
|
value="{{ config('SETTINGS::MAIL:FROM_ADDRESS') }}"
|
|
class="form-control @error('mailfromadress') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="mailfromname">{{ __('Mail From Name') }}:</label>
|
|
<input x-model="mailfromname" id="mailfromname" name="mailfromname" type="text"
|
|
value="{{ config('SETTINGS::MAIL:FROM_NAME') }}"
|
|
class="form-control @error('mailfromname') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- DISCORD -->
|
|
<div class="col-md-3 px-3">
|
|
<div class="row mb-2">
|
|
<div class="col text-center">
|
|
<h1>Discord</h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="discord-client-id">{{ __('Discord Client-ID') }}:</label>
|
|
<input x-model="discord-client-id" id="discord-client-id" name="discord-client-id" type="text"
|
|
value="{{ config('SETTINGS::DISCORD:CLIENT_ID') }}"
|
|
class="form-control @error('discord-client-id') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="discord-client-secret">{{ __('Discord Client-Secret') }}:</label>
|
|
<input x-model="discord-client-secret" id="discord-client-secret" name="discord-client-secret"
|
|
type="text" value="{{ config('SETTINGS::DISCORD:CLIENT_SECRET') }}"
|
|
class="form-control @error('discord-client-secret') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="discord-client-secret">{{ __('Discord Bot-Token') }}:</label>
|
|
<input x-model="discord-bot-token" id="discord-bot-token" name="discord-bot-token" type="text"
|
|
value="{{ config('SETTINGS::DISCORD:BOT_TOKEN') }}"
|
|
class="form-control @error('discord-bot-token') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="discord-client-secret">{{ __('Discord Guild-ID') }}:</label>
|
|
<input x-model="discord-guild-id" id="discord-guild-id" name="discord-guild-id" type="number"
|
|
value="{{ config('SETTINGS::DISCORD:GUILD_ID') }}"
|
|
class="form-control @error('discord-guild-id') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="discord-invite-url">{{ __('Discord Invite-URL') }}:</label>
|
|
<input x-model="discord-invite-url" id="discord-invite-url" name="discord-invite-url"
|
|
type="text" value="{{ config('SETTINGS::DISCORD:INVITE_URL') }}"
|
|
class="form-control @error('discord-invite-url') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="discord-role-id">{{ __('Discord Role-ID') }}:</label>
|
|
<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">
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="col-md-3 px-3">
|
|
<div class="row mb-2">
|
|
<div class="col text-center">
|
|
<h1>ReCaptcha</h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="custom-control mb-3 p-0">
|
|
<div class="col m-0 p-0 d-flex justify-content-between align-items-center">
|
|
<div>
|
|
<input value="true" id="enable-recaptcha" name="enable-recaptcha"
|
|
{{ config('SETTINGS::RECAPTCHA:ENABLED') == 'true' ? 'checked' : '' }}
|
|
type="checkbox">
|
|
<label for="enable-recaptcha">{{ __('Enable ReCaptcha') }} </label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="recaptcha-site-key">{{ __('ReCaptcha Site-Key') }}:</label>
|
|
<input x-model="recaptcha-site-key" id="recaptcha-site-key" name="recaptcha-site-key"
|
|
type="text" value="{{ config('SETTINGS::RECAPTCHA:SITE_KEY') }}"
|
|
class="form-control @error('recaptcha-site-key') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="recaptcha-secret-key">{{ __('ReCaptcha Secret-Key') }}:</label>
|
|
<input x-model="recaptcha-secret-key" id="recaptcha-secret-key" name="recaptcha-secret-key"
|
|
type="text" value="{{ config('SETTINGS::RECAPTCHA:SECRET_KEY') }}"
|
|
class="form-control @error('recaptcha-secret-key') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3 px-3">
|
|
<div class="row mb-2">
|
|
<div class="col text-center">
|
|
<h1>Referral System</h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="custom-control mb-3 p-0">
|
|
<div class="col m-0 p-0 d-flex justify-content-between align-items-center">
|
|
<div>
|
|
<input value="true" id="enable_referral" name="enable_referral"
|
|
{{ config('SETTINGS::REFERRAL::ENABLED') == 'true' ? 'checked' : '' }}
|
|
type="checkbox">
|
|
<label for="enable_referral">{{ __('Enable Referral') }} </label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="custom-control mb-3 p-0">
|
|
<label for="referral_mode">{{ __('Mode') }}:
|
|
<i data-toggle="popover" data-trigger="hover"
|
|
data-content="{{ __('Should a reward be given if a new User registers or if a new user buys credits') }}" class="fas fa-info-circle"></i>
|
|
</label>
|
|
<select id="referral_mode" style="width:100%" class="custom-select" name="referral_mode" required
|
|
autocomplete="off" @error('referral_mode') is-invalid @enderror>
|
|
<option value="commission" @if (config('SETTINGS::REFERRAL:MODE') == "commission") selected
|
|
@endif>{{ __("Commission") }}</option>
|
|
<option value="sign-up" @if (config('SETTINGS::REFERRAL:MODE') == "sign-up") selected
|
|
@endif>{{ __("Sign-Up") }}</option>
|
|
<option value="both" @if (config('SETTINGS::REFERRAL:MODE') == "both") selected
|
|
@endif>{{ __("Both") }}</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="referral_percentage">{{ __('Referral reward in percent') }} {{__("(only for commission-mode)")}}:
|
|
<i data-toggle="popover" data-trigger="hover"
|
|
data-content="{{ __('If a referred user buys credits, the referral-user will get x% of the Credits the referred user bought') }}" class="fas fa-info-circle"></i>
|
|
</label>
|
|
<input x-model="referral_percentage" id="referral_percentage" name="referral_percentage"
|
|
type="number" value="{{ config('SETTINGS::REFERRAL:PERCENTAGE') }}"
|
|
class="form-control @error('referral_percentage') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
<div class="form-group mb-3">
|
|
<div class="custom-control p-0">
|
|
<label for="referral_reward">{{ __('Referral reward in') }} {{ config('SETTINGS::SYSTEM:CREDITS_DISPLAY_NAME', 'Credits') }} {{__("(only for sign-up-mode)")}}:</label>
|
|
<input x-model="referral_reward" id="referral_reward" name="referral_reward"
|
|
type="number" value="{{ config('SETTINGS::REFERRAL::REWARD') }}"
|
|
class="form-control @error('referral_reward') is-invalid @enderror">
|
|
</div>
|
|
</div>
|
|
<div class="custom-control mb-3 p-0">
|
|
<label for="referral_allowed">{{ __('Allowed') }}:
|
|
<i data-toggle="popover" data-trigger="hover"
|
|
data-content="{{ __('Who is allowed to see their referral-URL') }}" class="fas fa-info-circle"></i>
|
|
</label>
|
|
<select id="referral_allowed" style="width:100%" class="custom-select" name="referral_allowed" required
|
|
autocomplete="off" @error('referral_allowed') is-invalid @enderror>
|
|
<option value="everyone" @if (config('SETTINGS::REFERRAL::ALLOWED') == "everyone") selected
|
|
@endif>{{ __("Everyone") }}</option>
|
|
<option value="client" @if (config('SETTINGS::REFERRAL::ALLOWED') == "client") selected
|
|
@endif>{{ __("Clients") }}</option>
|
|
</select>
|
|
</div>
|
|
<div class="row mb-2">
|
|
<div class="col text-center">
|
|
<h1>Ticket System</h1>
|
|
</div>
|
|
</div>
|
|
<div class="custom-control mb-3 p-0">
|
|
<div class="col m-0 p-0 d-flex justify-content-between align-items-center">
|
|
<div>
|
|
<input value="true" id="ticket_enabled" name="ticket_enabled"
|
|
{{ config('SETTINGS::TICKET:ENABLED') == 'true' ? 'checked' : '' }}
|
|
type="checkbox">
|
|
<label for="ticket_enabled">{{ __('Enable Ticketsystem') }} </label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<button class="btn btn-primary mt-3 ml-3">{{ __('Submit') }}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|