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

@lang('Delivery Service')

{!! Form::select('enable_delivery', [true=>__('Enable'), false=>__('Disable')], config('delivery.enable'), ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}

@lang('Delivery Configuration')


{!! Form::open(['method'=>'patch', 'action'=>'ManageAppSettingsController@updateDeliveryDelhivery', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Delhivery Services Settings')

{!! Form::label('enable_delhivery', __('Delhivery Services:')) !!} {!! Form::select('enable_delhivery', [true=>__('Enable'), false=>__('Disable')], config('delhivery.enable'), ['class'=>'form-control selectpicker', 'data-style'=>'btn-default', 'onchange'=>'checkDeliveryEnable(this.id,this.value)']) !!} {!! Form::label('enable_delhivery_error', __('This Delivery Service Can\'t be Use with your Default Currency'), ['id' => 'enable_delhivery_error','class' => 'text-danger','style' => 'display : none;position:absolute;']) !!}
{!! Form::label('delhivery_mode', __('Delhivery Mode:')) !!} {!! Form::select('delhivery_mode', ['sandbox'=>__('Sandbox'), 'live'=>__('Live')], config('delhivery.mode'), ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::label('delhivery_sandbox_api_key', __('Delhivery Sandbox API Key:')) !!} {!! Form::text('delhivery_sandbox_api_key', config('delhivery.api_key.sandbox'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Sandbox API Key')])!!}
{!! Form::label('delhivery_sandbox_client_name', __('Delhivery Sandbox Client Name:')) !!} {!! Form::text('delhivery_sandbox_client_name', config('delhivery.client_name.sandbox'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Sandbox Client Name')])!!}
{!! Form::label('delhivery_live_api_key', __('Delhivery Live API Key:')) !!} {!! Form::text('delhivery_live_api_key', config('delhivery.api_key.live'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Live API Key')])!!}
{!! Form::label('delhivery_live_client_name', __('Delhivery Live Client Name:')) !!} {!! Form::text('delhivery_live_client_name', config('delhivery.client_name.live'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Live Client Name')])!!}

@lang('WareHouse Details')

{!! Form::label('warehouse_name', __('Delhivery Warehouse Name:')) !!} {!! Form::text('warehouse_name', config('delhivery.warehouse_name'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Warehouse Name')])!!}
{!! Form::label('warehouse_city', __('Delhivery Warehouse City:')) !!} {!! Form::text('warehouse_city', config('delhivery.warehouse_city'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Warehouse City')])!!}
{!! Form::label('warehouse_pin', __('Delhivery Warehouse Pin Code:')) !!} {!! Form::text('warehouse_pin', config('delhivery.warehouse_pin'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Warehouse Pin Code')])!!}
{!! Form::label('warehouse_country', __('Delhivery Warehouse Country:')) !!} {!! Form::text('warehouse_country', config('delhivery.warehouse_country'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Warehouse Country')])!!}
{!! Form::label('warehouse_phone', __('Delhivery Warehouse Phone:')) !!} {!! Form::text('warehouse_phone', config('delhivery.warehouse_phone'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Warehouse Phone')])!!}
{!! Form::label('warehouse_address', __('Delhivery Warehouse Address:')) !!} {!! Form::textarea('warehouse_address', config('delhivery.warehouse_address'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Warehouse Address')])!!}

@lang('Return Details')

*@lang('Note') :
1. @lang('If you are passing the return keys then shipment will be delivered to return address.')
2. @lang('if you are not passing the return keys then shipment will be delivered to the warehouse address.')

{!! Form::label('return_name', __('Delhivery Return Name:')) !!} {!! Form::text('return_name', config('delhivery.return_name'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Return Name')])!!}
{!! Form::label('return_city', __('Delhivery Return City:')) !!} {!! Form::text('return_city', config('delhivery.return_city'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Return City')])!!}
{!! Form::label('return_state', __('Delhivery Return State:')) !!} {!! Form::text('return_state', config('delhivery.return_state'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Return State')])!!}
{!! Form::label('return_pin', __('Delhivery Return Pin Code:')) !!} {!! Form::text('return_pin', config('delhivery.return_pin'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Return Pin Code')])!!}
{!! Form::label('return_country', __('Delhivery Return Country:')) !!} {!! Form::text('return_country', config('delhivery.return_country'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Return Country')])!!}
{!! Form::label('return_phone', __('Delhivery Return Phone:')) !!} {!! Form::text('return_phone', config('delhivery.return_phone'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Return Phone')])!!}
{!! Form::label('return_address', __('Delhivery Return Address:')) !!} {!! Form::textarea('return_address', config('delhivery.return_address'), ['class'=>'form-control', 'placeholder'=>__('Enter Delhivery Return Address')])!!}
{!! Form::submit(__('Save Settings'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}