@if(session()->has('settings_saved')) @endif @if(session()->has('settings_not_saved')) @endif @include('includes.form_errors')
{!! Form::open(['method'=>'patch', 'action'=>'ManageSettingsController@updateStore', 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Store Settings')

{{--
--}}
{!! Form::label('contact_email', __('Contact Email:')) !!} {!! Form::email('contact_email', array_has($settings, 'contact_email') ? $settings['contact_email'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter contact email'), 'required'])!!}
{!! Form::label('toll_free_number', __('Toll Free Number:')) !!} {!! Form::text('toll_free_number', array_has($settings, 'toll_free_number') ? $settings['toll_free_number'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter Toll Free Number ')])!!}
{!! Form::label('contact_number', __('Contact Number:')) !!} {!! Form::text('contact_number', array_has($settings, 'contact_number') ? $settings['contact_number'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter contact number')])!!}
{!! Form::label('whatsapp_number', __('Whatsapp Number:')) !!} {!! Form::text('whatsapp_number', array_has($settings, 'whatsapp_number') ? $settings['whatsapp_number'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter Whatsapp number')])!!}
{!! Form::label('site_logo_name', __('Logo Name:')) !!} {!! Form::text('site_logo_name', array_has($settings, 'site_logo_name') ? $settings['site_logo_name'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter logo name')])!!}
{!! Form::label('site_logo_colour', __('Logo Background Colour (eg. #a70303, rgb(255,0,255), green):')) !!} {!! Form::text('site_logo_colour', array_has($settings, 'site_logo_colour') ? $settings['site_logo_colour'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter logo background colour'), 'required'])!!}
{!! Form::label('site_logo_width', __('Logo Width (eg. 200px):')) !!} {!! Form::text('site_logo_width', array_has($settings, 'site_logo_width') ? $settings['site_logo_width'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter logo width'), 'required'])!!}
{!! Form::label('site_logo_height', __('Logo Height (eg. 200px):')) !!} {!! Form::text('site_logo_height', array_has($settings, 'site_logo_height') ? $settings['site_logo_height'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter logo height'), 'required'])!!}
Site Logo

{!! Form::label('logo', __('Choose Site Logo (200px*200px)'), ['class'=>'btn btn-default btn-file']) !!} {!! Form::file('logo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-info").html(files[0].name)']) !!} @lang('No photo chosen')
Site Text Logo

{!! Form::label('text_logo', __('Choose Site Text Logo (470px*150px)'), ['class'=>'btn btn-default btn-file']) !!} {!! Form::file('text_logo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-info1").html(files[0].name)']) !!} @lang('No photo chosen')
{{--
--}}
{{--
--}} {{--
--}}
{!! Form::label('facebook_app_id', __('Facebook App ID:')) !!} {!! Form::text('facebook_app_id', array_has($settings, 'facebook_app_id') ? $settings['facebook_app_id'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter Facebook App ID')])!!}

{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
{!! Form::open(['method'=>'patch', 'action'=>'ManageSettingsController@updateTheme', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Theme Settings')

{!! Form::label('theme', __('Theme:')) !!} {!! Form::select('theme', $themes, config('themeswitcher.current_theme'), ['class'=>'form-control', 'required'])!!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
{!! Form::open(['method'=>'patch', 'action'=>'ManageSettingsController@updateLiveChat', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Live Chat Settings')

{!! Form::label('tawk_widget_code', __('Tawk Widget Code:')) !!} {!! Form::textarea('tawk_widget_code', config('livechat.tawk_widget_code'), ['class'=>'form-control', 'placeholder'=>__('Enter Tawk Widget Code')])!!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
{!! Form::open(['method'=>'patch', 'action'=>'ManageSettingsController@updateTaxShipping', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Tax / Shipping Settings')

{!! Form::label('gstin', __('GST No:')) !!} {!! Form::text('gstin', array_has($settings, 'gstin') ? $settings['gstin'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter GST No')])!!}
{!! Form::label('gst_name', __('GST Name:')) !!} {!! Form::text('gst_name', array_has($settings, 'gst_name') ? $settings['gst_name'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter GST Name')])!!}
{!! Form::label('tax_rate', __('Tax Rate (in %):')) !!} {!! Form::number('tax_rate', array_has($settings, 'tax_rate') ? $settings['tax_rate'] : null, ['class'=>'form-control', 'step'=>'any', 'min'=>0, 'max'=>100, 'placeholder'=>__('Enter tax rate'), 'required']) !!}
{!! Form::label('shipping_cost', __('Shipping Cost:')) !!} {!! Form::number('shipping_cost', array_has($settings, 'shipping_cost') ? $settings['shipping_cost'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter shipping cost'), 'required']) !!}
{!! Form::label('shipping_cost_valid_below', __('Shipping Cost applies below price:')) !!} {!! Form::number('shipping_cost_valid_below', array_has($settings, 'shipping_cost_valid_below') ? $settings['shipping_cost_valid_below'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter price below which shipping cost applies'), 'required', 'min'=>0, 'step'=>'any']) !!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
{!! Form::open(['method'=>'patch', 'action'=>'ManageSettingsController@updateAdminPanel', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Admin Panel Settings')

{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
{!! Form::open(['method'=>'patch', 'action'=>'ManageSettingsController@updateRecaptcha', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Google Recaptcha Settings')

{!! Form::label('recaptcha_public_key', __('Public Key or Site Key:')) !!} {!! Form::text('recaptcha_public_key', config('recaptcha.api_site_key'), ['class'=>'form-control', 'placeholder'=>__('Enter Public Key or Site Key')])!!}
{!! Form::label('recaptcha_private_key', __('Private Key or Secret Key:')) !!} {!! Form::text('recaptcha_private_key', config('recaptcha.api_secret_key'), ['class'=>'form-control', 'placeholder'=>__('Enter Private Key or Secret Key')])!!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
{!! Form::open(['method'=>'patch', 'action'=>'ManageSettingsController@updateGoogleMap', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Google Map Settings')

{!! Form::label('map_embed_code', __('Embed Code:')) !!} {!! Form::textarea('map_embed_code', config('googlemap.embed_code'), ['class'=>'form-control', 'placeholder'=>__('Enter Embed Code'), 'rows'=>5])!!}

@lang('OR')

{!! Form::label('map_api_key', __('API Key:')) !!} {!! Form::text('map_api_key', config('googlemap.api_key'), ['class'=>'form-control', 'placeholder'=>__('Enter API Key')])!!}
{!! Form::label('map_location', __('Location Name:')) !!} {!! Form::text('map_location', config('googlemap.location_name'), ['class'=>'form-control', 'placeholder'=>__('Enter Location Name')])!!}
{!! Form::label('map_zoom', __('Zoom Level:')) !!} {!! Form::number('map_zoom', config('googlemap.zoom'), ['class'=>'form-control', 'placeholder'=>__('Enter Zoom Level')])!!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
{!! Form::open(['method'=>'patch', 'action'=>'ManageSettingsController@updateAddresses', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Admin Block')

{!! Form::label('address_block_address', __('Address:')) !!} {!! Form::textarea('address_block_address', array_has($settings, 'address_block_address') ? $settings['address_block_address'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter Registered Office')])!!}

@lang('Registered Office')

{!! Form::label('registered_office', __('Address:')) !!} {!! Form::textarea('registered_office', array_has($settings, 'registered_office') ? $settings['registered_office'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter Registered Office')])!!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}