@extends('settings.edit') @section('section')
@include('settings.setting_menu')
{{ Form::open(['route' => ['setting.update'], 'method' => 'post', 'files' => true, 'id' => 'createSetting']) }}
{{ Form::label('app_name', __('messages.setting.app_name') . ':', ['class' => 'form-label required']) }} {{ Form::text('app_name', $setting['app_name'], ['class' => 'form-control', 'id' => 'settingAppName', 'placeholder' => __('messages.setting.app_name')]) }}
{{ Form::label('email', __('messages.user.email') . ':', ['class' => 'form-label required']) }} {{ Form::email('email', $setting['email'], ['class' => 'form-control', 'required', 'id' => 'settingEmail', 'placeholder' => __('messages.user.email')]) }}
{{ Form::label('phone', __('messages.user.phone') . ':', ['class' => 'form-label required']) }}
{{ Form::tel('phone', '+' . $setting['prefix_code'] . $setting['phone'], ['class' => 'form-control', 'placeholder' => __('messages.form.contact'), 'onkeyup' => 'if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,"")', 'id' => 'phoneNumber']) }} {{ Form::hidden('prefix_code', '+' . $setting['prefix_code'], ['id' => 'prefix_code']) }}

{{ __('messages.placeholder.valid_number') }}

{{ Form::label('plan_expire_notification', __('messages.plan_expire_notification') . ':', ['class' => 'form-label']) }} {{ Form::number('plan_expire_notification', $setting['plan_expire_notification'], ['class' => 'form-control', 'min' => 0, 'onKeyPress' => 'if(this.value.length==2) return false;', 'required', 'id' => 'settingPlanExpireNotification', 'placeholder' => __('messages.plan_expire_notification')]) }}
{{ Form::label('address', __('messages.setting.address') . ':', ['class' => 'form-label']) }} {{ Form::text('address', $setting['address'], ['class' => 'form-control', 'min' => 0, 'id' => 'settingAddress', 'required', 'placeholder' => __('messages.setting.address')]) }}
{{ Form::label('default_language', __('messages.setting.default_language') . ':', ['class' => 'form-label']) }} {{ Form::select('default_language', getAllLanguage(), $setting['default_language'], ['class' => 'form-control', 'data-control' => 'select2']) }}
{{ Form::label('user_default_language', __('messages.setting.user_default_language') . ':', ['class' => 'form-label']) }} {{ Form::select('user_default_language', getAllLanguage(), $setting['user_default_language'], ['class' => 'form-control', 'data-control' => 'select2']) }}
{{ Form::label('default_country_code', __('messages.common.default_country_code') . ':', ['class' => 'form-label']) }} {{ Form::text('default_country_data', null, ['class' => 'form-control', 'placeholder' => __('messages.common.default_country_code'), 'id' => 'defaultCountryData']) }} {{ Form::hidden('default_country_code', $setting['default_country_code'], ['id' => 'defaultCountryCode']) }}
{{ Form::label('default_currency_format', __('messages.setting.default_currency_format') . ':', ['class' => 'form-label']) }} {{ Form::select('default_currency', getCurrenciesCode(), $setting['default_currency'], ['class' => 'form-control', 'data-control' => 'select2']) }}
{{ Form::label('affiliation_amount', __('messages.setting.affiliation_amount') . ':', ['class' => 'form-label required']) }} {{ Form::text('affiliation_amount', $setting['affiliation_amount'], ['class' => 'form-control', 'id' => 'affiliationAmount', 'placeholder' => __('messages.setting.affiliation_amount')]) }}
{{ Form::label('is_front_page', __('messages.common.enable_page') . ':', ['class' => 'form-label']) }}
{{ Form::label('is_cookie_banner', __('messages.common.cookie_banner_enabled') . ':', ['class' => 'form-label']) }}
{{ Form::label('currency_after_amount', __('messages.common.currency_position') . ':', ['class' => 'form-label mb-3']) }}
{{ Form::label('mobileValidation', __('messages.common.phone_validation') . ':', ['class' => 'form-label mb-3']) }}
{{ Form::label('registerEnable', __('messages.common.register_enable') . ':', ['class' => 'form-label mb-3']) }}
{{ Form::label('captchaEnable', __('messages.common.captcha_enable') . ':', ['class' => 'form-label mb-3']) }}
{{ __('messages.setting.upgrade_database') }} {{ __('messages.gnerate_sitemap') }}
{{ Form::submit(__('messages.common.save'), ['class' => 'btn btn-primary me-3']) }} {{ __('messages.common.discard') }}
{{ Form::close() }}
@endsection