2019-11-16 10:21:14 +03:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title', trans_choice('general.localisations', 1))
|
|
|
|
|
|
|
|
@section('content')
|
2020-08-06 19:10:05 +03:00
|
|
|
{!! Form::open([
|
2019-11-16 10:21:14 +03:00
|
|
|
'id' => 'setting',
|
|
|
|
'method' => 'PATCH',
|
|
|
|
'route' => 'settings.update',
|
|
|
|
'@submit.prevent' => 'onSubmit',
|
|
|
|
'@keydown' => 'form.errors.clear($event.target.name)',
|
|
|
|
'files' => true,
|
|
|
|
'role' => 'form',
|
|
|
|
'class' => 'form-loading-button',
|
|
|
|
'novalidate' => true,
|
|
|
|
]) !!}
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
2021-06-07 14:42:36 +03:00
|
|
|
{{ Form::dateGroup('financial_start', trans('settings.localisation.financial_start'), 'calendar', ['id' => 'financial_start', 'class' => 'form-control datepicker', 'show-date-format' => 'j F', 'date-format' => 'd-m', 'autocomplete' => 'off', 'hidden_year' => true], setting('localisation.financial_start')) }}
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2021-02-12 23:05:50 +03:00
|
|
|
{{ Form::selectGroup('financial_denote', trans('settings.localisation.financial_denote.title'), 'calendar', $financial_denote_options, setting('localisation.financial_denote'), []) }}
|
2021-02-12 22:00:46 +03:00
|
|
|
|
2020-08-06 19:10:05 +03:00
|
|
|
{{ Form::selectGroupGroup('timezone', trans('settings.localisation.timezone'), 'globe', $timezones, setting('localisation.timezone'), []) }}
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2020-08-06 19:10:05 +03:00
|
|
|
{{ Form::selectGroup('date_format', trans('settings.localisation.date.format'), 'calendar', $date_formats, setting('localisation.date_format'), ['autocomplete' => 'off']) }}
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2020-08-06 19:10:05 +03:00
|
|
|
{{ Form::selectGroup('date_separator', trans('settings.localisation.date.separator'), 'minus', $date_separators, setting('localisation.date_separator'), []) }}
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2020-08-06 19:10:05 +03:00
|
|
|
{{ Form::selectGroup('percent_position', trans('settings.localisation.percent.title'), 'percent', $percent_positions, setting('localisation.percent_position'), []) }}
|
2020-03-26 16:20:31 +03:00
|
|
|
|
2020-08-06 19:10:05 +03:00
|
|
|
{{ Form::selectGroup('discount_location', trans('settings.localisation.discount_location.name'), 'percent', $discount_locations, setting('localisation.discount_location'), []) }}
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-10-14 17:07:59 +03:00
|
|
|
@can('update-settings-settings')
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card-footer">
|
2020-02-15 13:04:37 +03:00
|
|
|
<div class="row save-buttons">
|
2020-02-07 15:43:31 +03:00
|
|
|
{{ Form::saveButtons('settings.index') }}
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-10-14 17:07:59 +03:00
|
|
|
@endcan
|
2019-11-16 10:21:14 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{!! Form::hidden('_prefix', 'localisation') !!}
|
|
|
|
|
|
|
|
{!! Form::close() !!}
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@push('scripts_start')
|
|
|
|
<script src="{{ asset('public/js/settings/settings.js?v=' . version('short')) }}"></script>
|
|
|
|
@endpush
|