|
@@ -5,66 +5,80 @@
|
|
|
@method('PATCH')
|
|
|
|
|
|
<div class="row">
|
|
|
- <div class="col-md-3">
|
|
|
+ <div class="col-md-3 p-3">
|
|
|
<div class="form-group">
|
|
|
<!-- AVAILABLE LANGUAGES -->
|
|
|
- <label for="languages">{{ __('Available languages') }}:</label>
|
|
|
+ <div class="custom-control mb-3 p-0">
|
|
|
+ <label for="languages">{{ __('Available languages') }}:</label>
|
|
|
+ <select id="languages" style="width:100%" class="custom-select" name="languages[]" required
|
|
|
+ multiple="multiple" autocomplete="off">
|
|
|
+ @foreach (config('app.available_locales') as $lang)
|
|
|
+ <option value="{{ $lang }}">{{ __($lang) }}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
|
|
|
- <select id="languages" style="width:100%" class="custom-select" name="languages[]" required
|
|
|
- multiple="multiple" autocomplete="off">
|
|
|
- @foreach (config('app.available_locales') as $lang)
|
|
|
- <option value="{{ $lang }}">{{ __($lang) }}</option>
|
|
|
- @endforeach
|
|
|
- </select>
|
|
|
+ <!-- DEFAULT LANGUAGE -->
|
|
|
|
|
|
+ <div class="custom-control mb-3 p-0">
|
|
|
+ <label for="defaultLanguage">{{ __('Default language') }}:
|
|
|
+ <i data-toggle="popover" data-trigger="hover"
|
|
|
+ data-content="{{ __('The fallback Language, if something goes wrong') }}"
|
|
|
+ class="fas fa-info-circle"></i>
|
|
|
+ </label>
|
|
|
|
|
|
- <!-- DEFAULT LANGUAGE -->
|
|
|
- <label for="defaultLanguage">{{ __('Default language') }}: <i data-toggle="popover"
|
|
|
- data-trigger="hover"
|
|
|
- data-content="{{ __('The fallback Language, if something goes wrong') }}"
|
|
|
- class="fas fa-info-circle"></i></label>
|
|
|
+ <select id="defaultLanguage" style="width:100%" class="custom-select" name="defaultLanguage"
|
|
|
+ required autocomplete="off">
|
|
|
+ <option value="{{ config('SETTINGS::LOCALE:DEFAULT') }}" selected>
|
|
|
+ {{ __(config('SETTINGS::LOCALE:DEFAULT')) }}</option>
|
|
|
+ @foreach (config('app.available_locales') as $lang)
|
|
|
+ <option value="{{ $lang }}">{{ __($lang) }}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
|
|
|
- <select id="defaultLanguage" style="width:100%" class="custom-select" name="defaultLanguage"
|
|
|
- required autocomplete="off">
|
|
|
- <option value="{{ config('SETTINGS::LOCALE:DEFAULT') }}" selected>
|
|
|
- {{ __(config('SETTINGS::LOCALE:DEFAULT')) }}</option>
|
|
|
- @foreach (config('app.available_locales') as $lang)
|
|
|
- <option value="{{ $lang }}">{{ __($lang) }}</option>
|
|
|
- @endforeach
|
|
|
- </select>
|
|
|
+ <div class="custom-control mb-3 p-0">
|
|
|
+ <!--DATATABLE LANGUAGE -->
|
|
|
+ <label for="datatable-language">{{ __('Datable language') }} <i data-toggle="popover"
|
|
|
+ data-trigger="hover"
|
|
|
+ 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>
|
|
|
+ <input x-model="datatable-language" id="datatable-language" name="datatable-language"
|
|
|
+ type="text" required value="{{ config('SETTINGS::LOCALE:DATATABLES') }}"
|
|
|
+ class="form-control @error('datatable-language') is-invalid @enderror">
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
- <!--DATATABLE LANGUAGE -->
|
|
|
- <label for="datatable-language">{{ __('Datable language') }} <i data-toggle="popover"
|
|
|
- data-trigger="hover"
|
|
|
- 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>
|
|
|
- <input x-model="datatable-language" id="datatable-language" name="datatable-language" type="text"
|
|
|
- required value="{{ config('SETTINGS::LOCALE:DATATABLES') }}"
|
|
|
- class="form-control @error('datatable-language') is-invalid @enderror">
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
- <!-- AUTO TRANSLATE -->
|
|
|
- <div class="form-group">
|
|
|
- <input value="true" id="autotranslate" name="autotranslate"
|
|
|
- {{ config('SETTINGS::LOCALE:DYNAMIC') == 'true' ? 'checked' : '' }} type="checkbox">
|
|
|
- <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') }}"
|
|
|
- class="fas fa-info-circle"></i></label>
|
|
|
|
|
|
- <br />
|
|
|
+ <div class="col-md-3 p-3">
|
|
|
+
|
|
|
+ <!-- AUTO TRANSLATE -->
|
|
|
+ <div class="form-group">
|
|
|
+ <input value="true" id="autotranslate" name="autotranslate"
|
|
|
+ {{ config('SETTINGS::LOCALE:DYNAMIC') == 'true' ? 'checked' : '' }} type="checkbox">
|
|
|
+ <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') }}"
|
|
|
+ class="fas fa-info-circle"></i></label>
|
|
|
+
|
|
|
+ <br />
|
|
|
|
|
|
- <!-- CLIENTS CAN CHANGE -->
|
|
|
- <input value="true" id="canClientChangeLanguage" name="canClientChangeLanguage"
|
|
|
- {{ config('SETTINGS::LOCALE:CLIENTS_CAN_CHANGE') == 'true' ? 'checked' : '' }} type="checkbox">
|
|
|
- <label for="canClientChangeLanguage">{{ __('Let the Client change the Language') }} <i
|
|
|
- data-toggle="popover" data-trigger="hover"
|
|
|
- data-content="{{ __('If this is checked, Clients will have the ability to manually change their Dashboard language') }}"
|
|
|
- class="fas fa-info-circle"></i></label>
|
|
|
+ <!-- CLIENTS CAN CHANGE -->
|
|
|
+ <input value="true" id="canClientChangeLanguage" name="canClientChangeLanguage"
|
|
|
+ {{ config('SETTINGS::LOCALE:CLIENTS_CAN_CHANGE') == 'true' ? 'checked' : '' }}
|
|
|
+ type="checkbox">
|
|
|
+ <label for="canClientChangeLanguage">{{ __('Let the Client change the Language') }} <i
|
|
|
+ data-toggle="popover" data-trigger="hover"
|
|
|
+ data-content="{{ __('If this is checked, Clients will have the ability to manually change their Dashboard language') }}"
|
|
|
+ class="fas fa-info-circle"></i></label>
|
|
|
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row">
|
|
|
+ <button class="btn btn-primary mt-3 ml-3">{{ __('Submit') }}</button>
|
|
|
</div>
|
|
|
- <button class="btn btn-primary">{{ __('Save') }}</button>
|
|
|
</form>
|
|
|
</div>
|
|
|
|