2017-07-07 23:44:48 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2021-11-19 06:23:48 -08:00
|
|
|
{{ trans('admin/settings/general.localization_title') }}
|
2017-07-07 23:44:48 -07:00
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('header_right')
|
2020-04-01 03:21:15 -07:00
|
|
|
<a href="{{ route('settings.index') }}" class="btn btn-primary"> {{ trans('general.back') }}</a>
|
2017-07-07 23:44:48 -07:00
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.checkbox label {
|
|
|
|
padding-right: 40px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
2017-10-17 17:18:17 -07:00
|
|
|
{{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }}
|
2017-07-07 23:44:48 -07:00
|
|
|
<!-- CSRF Token -->
|
|
|
|
{{csrf_field()}}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="panel box box-default">
|
|
|
|
<div class="box-header with-border">
|
2020-04-01 03:21:15 -07:00
|
|
|
<h2 class="box-title">
|
2021-11-19 06:23:48 -08:00
|
|
|
<i class="fas fa-globe-americas" aria-hidden="true"></i> {{ trans('admin/settings/general.localization') }}
|
2020-04-01 03:21:15 -07:00
|
|
|
</h2>
|
2017-07-07 23:44:48 -07:00
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
|
|
|
|
|
2023-08-08 00:18:40 -07:00
|
|
|
<div class="col-md-12">
|
2017-07-07 23:44:48 -07:00
|
|
|
|
|
|
|
<!-- Language -->
|
|
|
|
<div class="form-group {{ $errors->has('site_name') ? 'error' : '' }}">
|
2023-08-21 12:13:28 -07:00
|
|
|
<div class="col-md-3 col-xs-12">
|
2017-07-07 23:44:48 -07:00
|
|
|
{{ Form::label('site_name', trans('admin/settings/general.default_language')) }}
|
|
|
|
</div>
|
2023-08-21 12:13:28 -07:00
|
|
|
<div class="col-md-5 col-xs-12">
|
2019-12-10 19:32:50 -08:00
|
|
|
{!! Form::locales('locale', Request::old('locale', $setting->locale), 'select2') !!}
|
2017-07-07 23:44:48 -07:00
|
|
|
|
2020-04-01 03:21:15 -07:00
|
|
|
{!! $errors->first('locale', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
2017-07-07 23:44:48 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-08-21 12:13:28 -07:00
|
|
|
<!-- name display format -->
|
|
|
|
<div class="form-group {{ $errors->has('name_display_format') ? 'error' : '' }}">
|
|
|
|
<div class="col-md-3 col-xs-12">
|
|
|
|
{{ Form::label('name_display_format', trans('general.name_display_format')) }}
|
|
|
|
</div>
|
|
|
|
<div class="col-md-5 col-xs-12">
|
|
|
|
{!! Form::name_display_format('name_display_format', Request::old('name_display_format', $setting->name_display_format), 'select2') !!}
|
|
|
|
|
|
|
|
{!! $errors->first('name_display_format', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2023-08-08 00:18:40 -07:00
|
|
|
|
2017-07-07 23:44:48 -07:00
|
|
|
<!-- Date format -->
|
|
|
|
<div class="form-group {{ $errors->has('time_display_format') ? 'error' : '' }}">
|
2023-08-21 12:13:28 -07:00
|
|
|
<div class="col-md-3 col-xs-12">
|
2017-07-07 23:44:48 -07:00
|
|
|
{{ Form::label('time_display_format', trans('general.time_and_date_display')) }}
|
|
|
|
</div>
|
2023-08-21 12:13:28 -07:00
|
|
|
<div class="col-md-5 col-xs-12">
|
2019-12-10 19:32:50 -08:00
|
|
|
{!! Form::date_display_format('date_display_format', Request::old('date_display_format', $setting->date_display_format), 'select2') !!}
|
2023-08-08 00:18:40 -07:00
|
|
|
</div>
|
2023-08-21 12:13:28 -07:00
|
|
|
<div class="col-md-3 col-xs-12">
|
2019-12-10 19:32:50 -08:00
|
|
|
{!! Form::time_display_format('time_display_format', Request::old('time_display_format', $setting->time_display_format), 'select2') !!}
|
2017-07-07 23:44:48 -07:00
|
|
|
</div>
|
2023-08-14 14:44:29 -07:00
|
|
|
|
|
|
|
{!! $errors->first('time_display_format', '<div class="col-md-9 col-md-offset-3"><span class="alert-msg" aria-hidden="true">:message</span> </div>') !!}
|
|
|
|
|
2017-07-07 23:44:48 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Currency -->
|
|
|
|
<div class="form-group {{ $errors->has('default_currency') ? 'error' : '' }}">
|
2023-08-21 12:13:28 -07:00
|
|
|
<div class="col-md-3 col-xs-12">
|
2017-07-07 23:44:48 -07:00
|
|
|
{{ Form::label('default_currency', trans('admin/settings/general.default_currency')) }}
|
|
|
|
</div>
|
2023-08-21 12:13:28 -07:00
|
|
|
<div class="col-md-9 col-xs-12">
|
2020-12-15 11:49:13 -08:00
|
|
|
{{ Form::text('default_currency', old('default_currency', $setting->default_currency), array('class' => 'form-control select2-container','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px; display: inline-block; ')) }}
|
|
|
|
|
|
|
|
{!! Form::digit_separator('digit_separator', old('digit_separator', $setting->digit_separator), 'select2') !!}
|
|
|
|
|
2020-04-01 03:21:15 -07:00
|
|
|
{!! $errors->first('default_currency', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
2017-07-07 23:44:48 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div> <!--/.box-body-->
|
|
|
|
<div class="box-footer">
|
|
|
|
<div class="text-left col-md-6">
|
|
|
|
<a class="btn btn-link text-left" href="{{ route('settings.index') }}">{{ trans('button.cancel') }}</a>
|
|
|
|
</div>
|
|
|
|
<div class="text-right col-md-6">
|
2021-09-26 01:11:08 -07:00
|
|
|
<button type="submit" class="btn btn-primary"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.save') }}</button>
|
2017-07-07 23:44:48 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div> <!-- /box -->
|
|
|
|
</div> <!-- /.col-md-8-->
|
|
|
|
</div> <!-- /.row-->
|
|
|
|
|
|
|
|
{{Form::close()}}
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|