@extends('settings.edit') @section('section')
{{ 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.setting.front_page_enable').':', ['class' => 'form-label']) }}
{{ Form::label('is_cookie_banner', __('messages.common.cookie_banner_enabled').':', ['class' => 'form-label']) }}

{{__('messages.plan.seo')}}

{{ Form::label('Site title', __('messages.vcard.site_title').':', ['class' => 'form-label']) }} {{ Form::text('site_title', isset($metas) ? $metas['site_title'] : null, ['class' => 'form-control', 'placeholder' => __('messages.form.site_title')]) }}
{{ Form::label('Home title', __('messages.vcard.home_title').':', ['class' => 'form-label']) }} {{ Form::text('home_title', isset($metas) ? $metas['home_title'] : null, ['class' => 'form-control', 'placeholder' => __('messages.form.home_title')]) }}
{{ Form::label('Meta keyword', __('messages.vcard.meta_keyword').':', ['class' => 'form-label']) }} {{ Form::text('meta_keyword', isset($metas) ? $metas['meta_keyword'] : null, ['class' => 'form-control', 'placeholder' => __('messages.form.meta_keyword')]) }}
{{ Form::label('Meta Description', __('messages.vcard.meta_description').':', ['class' => 'form-label']) }} {{ Form::text('meta_description', isset($metas) ? $metas['meta_description'] : null, ['class' => 'form-control', 'placeholder' => __('messages.form.meta_description')]) }}

{{__('messages.vcard.google_analytics')}}

{{ Form::label('Google Analytics', __('messages.vcard.google_analytics').':', ['class' => 'form-label']) }} {{ Form::textarea('google_analytics',isset($metas) ? $metas['google_analytics'] : null, ['class' => 'form-control', 'placeholder' => __('messages.form.google_analytics')]) }}

{{__('messages.payment_method')}}

{{ Form::label('stripe_key', __('messages.setting.stripe_key').':', ['class' => 'form-label mb-3']) }} {{ Form::text('stripe_key',$setting['stripe_key'], ['class' => 'form-control stripe-key ','placeholder' => __('messages.setting.stripe_key')]) }}
{{ Form::label('stripe_secret', __('messages.setting.stripe_secret').':', ['class' => 'form-label stripe-secret-label mb-3']) }} {{ Form::text('stripe_secret',$setting['stripe_secret'], ['class' => 'form-control stripe-secret ','placeholder' => __('messages.setting.stripe_secret')]) }}
{{ Form::label('paypal_client_id', __('messages.setting.paypal_client_id').':', ['class' => 'form-label paypal-client-id-label mb-3']) }} {{ Form::text('paypal_client_id',$setting['paypal_client_id'], ['class' => 'form-control paypal-client-id ','placeholder' => __('messages.setting.paypal_client_id')]) }}
{{ Form::label('paypal_secret', __('messages.setting.paypal_secret').':', ['class' => 'form-label paypal-secret-label mb-3']) }} {{ Form::text('paypal_secret',$setting['paypal_secret'], ['class' => 'form-control paypal-secret ','placeholder' => __('messages.setting.paypal_secret')]) }}
{{ Form::label('paypal_mode', __('messages.setting.paypal_mode').':', ['class' => 'form-label paypal-secret-label mb-3']) }} {{ Form::select('paypal_mode', $paypalMode, $setting['paypal_mode'],['class' => 'form-control paypal-secret ', 'data-control'=>'select2','data-minimum-results-for-search'=>"Infinity"]) }}
{{ Form::label('razorpay_key', __('messages.setting.razorpay_key').':', ['class' => 'form-label razorpay-key-label mb-3']) }} {{ Form::text('razorpay_key',$setting['razorpay_key'], ['class' => 'form-control razorpay-key ','placeholder' => __('messages.setting.razorpay_key')]) }}
{{ Form::label('razorpay_secret', __('messages.setting.razorpay_secret').':', ['class' => 'form-label razorpay-secret-label mb-3']) }} {{ Form::text('razorpay_secret',$setting['razorpay_secret'], ['class' => 'form-control razorpay-secret ','placeholder' => __('messages.setting.razorpay_secret')]) }}
{{ Form::submit(__('messages.common.save'),['class' => 'btn btn-primary me-3']) }} {{__('messages.common.discard')}}
{{ Form::close() }}
@endsection