@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('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('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. 70px):')) !!} {!! 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. 40px):')) !!} {!! 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'), ['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 image chosen')


Site Favicon

{!! Form::label('site_favicon', __('Choose Site Favicon'), ['class'=>'btn btn-default btn-file']) !!} {!! Form::file('site_favicon',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-info-favicon").html(files[0].name)']) !!} @lang('No image chosen')
{!! Form::label('pagination_count', __('Pagination Counts')) !!} {!! Form::number('pagination_count', array_has($settings, 'pagination_count') ? $settings['pagination_count'] : null, ['class'=>'form-control', 'min'=> 1, 'max'=> 999, 'placeholder'=>__('Enter Number of Items Per Page'), 'required'])!!}
{!! Form::label('about_us_title', __('About Us Title:')) !!} {!! Form::text('about_us_title', array_has($settings, 'about_us_title') ? $settings['about_us_title'] : null, ['class'=>'form-control', 'placeholder'=>__('Enter about us title'), 'required'])!!}

{!! 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('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@updateVendor', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Vendor Settings')


{!! Form::label('minimum_amount_for_request', __('Minimum Amount required for Vendors before making Payment Requests.')) !!} {!! Form::number('minimum_amount_for_request', config('vendor.minimum_amount_for_request'), ['class'=>'form-control', 'step'=>'any', 'min'=>0, 'placeholder'=>__('Enter minimum amount required for vendors before making payment requests.'), '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@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.public_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.private_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@updateGoogleAnalytics', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Google Analytics Settings')

{!! Form::label('tracking_code', __('Tracking Code:')) !!} {!! Form::textarea('tracking_code', config('analytics.google_analytics_script'), ['class'=>'form-control', 'placeholder'=>__('Enter Tracking Code'), 'rows'=>10, 'cols'=>10])!!}


{!! 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@updateSiteMap', 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Site Map Settings')

{!! Form::label('site_map_file', __('Select Site Map File'), ['class'=>'btn btn-default btn-file']) !!} {!! Form::file('site_map_file',['class'=>'form-control','accept'=>'.xml', 'style'=>'display: none;','onchange'=>'$("#upload-sitemap-file-info").html(files[0].name)']) !!} @lang('No File chosen')
( @lang('Only XML File Format Supported*') )

{!! Form::label('site_map_url', __('Site Map Url :')) !!} {!! Form::text('site_map_url', config('site_map.site_map_url'), ['class'=>'form-control', 'placeholder'=>__('Enter Site Map Url')])!!}
{!! 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@updateReferral', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Referral System Settings')

{!! Form::label('referral_to_amt', __('Referral To Amount :')) !!} {!! Form::number('referral_to_amt', config('referral.referral_to_amt'), ['class'=>'form-control', 'placeholder'=>__('Enter amount for a person who use referral code')])!!}
{!! Form::label('referral_by_amt', __('Referral By Amount :')) !!} {!! Form::number('referral_by_amt', config('referral.referral_by_amt'), ['class'=>'form-control', 'placeholder'=>__('Enter amount for a person whose referral code is used')])!!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}