@extends('layouts.adminLayout.admin_design') @section('content')
{{ Form::open(['url' => route('establishments_edit', $storeDetails['id']), 'method'=>'POST', 'name' => 'establishment', 'id' => 'establishment', 'files'=>'true']) }}

{{ $title }} {{ Form::button(' '. __('lbl.save'),["type"=>"submit","name"=>"submit","value"=>"submit","class"=>"clickbtncommon btn-sm btn btn-primary "]) }} {{ __('lbl.cancel') }} {{ Form::button(' OnlineStore',["data-toggle"=>"modal","data-target"=>"#qrcodeModal","name"=>"submit","value"=>"submit","class"=>"clickbtncommon btn-sm btn btn-primary "]) }}

{{ Form::label(__('lbl.business_name')) }} {{ Form::text('business_name', $storeDetails['business_name'], ["class"=>"form-control mxlen_40","placeholder"=>__('lbl.business_name'),"id"=>"business_name","name"=>"business_name"]) }} @if ($errors->has('business_name')) @endif
{{ Form::label(__('lbl.contact_name')) }} {{ Form::text('contact_name', $storeDetails['contact_name'], ["class"=>"form-control mxlen_150","placeholder"=> __('lbl.contact_name'),"id"=>"contact_name","name"=>"contact_name"]) }} @if ($errors->has('title')) @endif
{{ Form::label(__('lbl.phone_number')) }} {{ Form::text('phone', $storeDetails['phone'], ["class"=>"form-control mxlen_14", "placeholder"=>"(xxx) xxx-xxxx", "id"=>"phone","name"=>"phone"]) }} @if ($errors->has('title')) @endif
{{ Form::label(__('lbl.fax')) }} {{ Form::text('fax', $storeDetails['fax'], ["class"=>"form-control mxlen_14","placeholder"=>__('lbl.fax'),"id"=>"fax","name"=>"fax"]) }} @if ($errors->has('fax')) @endif
{{ Form::label(__('lbl.email')) }} {{ Form::text('email', $storeDetails['email'], ["class"=>"form-control validEmail mxlen_30","placeholder"=>__('lbl.email'),"id"=>"email","name"=>"email"]) }} @if ($errors->has('email')) @endif
{{ Form::label(__('lbl.site_number')) }} {{ Form::text('site_number', $storeDetails['site_number'], ["class"=>"form-control numer_only mxlen_10","placeholder"=>__('lbl.site_number'),"id"=>"site_number","name"=>"site_number"]) }} @if ($errors->has('site_number')) @endif
{{ Form::label(__('lbl.retailer_id')) }} {{ Form::text('retailer_id', $storeDetails['retailer_id'], ["class"=>"form-control mxlen_50","placeholder"=>__('lbl.retailer_id'),"id"=>"retailer_id","name"=>"retailer_id"]) }}
{{ Form::label(__('lbl.address_1')) }} {{ Form::text('address_line_f', $storeDetails['address_line_f'], ["class"=>"form-control mxlen_40","placeholder"=>__('lbl.address_1'),"id"=>"address_line_f","name"=>"address_line_f"]) }}
{{ Form::label(__('lbl.address_2')) }} {{ Form::text('address_line_s', $storeDetails['address_line_s'], ["class"=>"form-control mxlen_40","placeholder"=>__('lbl.address_2'),"id"=>"address_line_s","name"=>"address_line_s"]) }}
{{ Form::label(__('lbl.country')) }} {{ Form::text('country', $storeDetails['country'], ["class"=>"form-control mxlen_25","placeholder"=>__('lbl.country'),"id"=>"country","name"=>"country"]) }} @if ($errors->has('country')) @endif
{{ Form::label(__('lbl.state')) }} {{ Form::text('state', $storeDetails['state'], ["class"=>"form-control mxlen_20","placeholder"=>__('lbl.state'),"id"=>"state","name"=>"state"]) }}
{{ Form::label(__('lbl.city')) }} {{ Form::text('city', $storeDetails['city'], ["class"=>"form-control mxlen_25","placeholder"=>__('lbl.city'),"id"=>"city","name"=>"city"]) }}
{{ Form::label(__('lbl.province')) }} {{ Form::text('province', $storeDetails['province'], ["class"=>"form-control mxlen_25","placeholder"=>__('lbl.province'),"id"=>"province","name"=>"province"]) }}
{{ Form::label(__('lbl.zip')) }} {{ Form::text('zip_postal_code', $storeDetails['zip_postal_code'], ["class"=>"form-control mxlen_5 digits","placeholder"=>__('lbl.zip'),"id"=>"zip_postal_code","name"=>"zip_postal_code"]) }}
{{ Form::label(__('lbl.currency')) }} {{ Form::select('currency', currencydrop(), $storeDetails['currency'], ["name"=>"currency","class"=>"form-control select2","id"=>"currency"]) }}
{{ Form::label(__('lbl.description')) }} {{ Form::textarea('description', $storeDetails['description'], ["class"=>"form-control ","rows"=>2,"placeholder"=>__('lbl.description'),"id"=>"description","name"=>"description"]) }}
{{ Form::label(__('lbl.establishmentsgroup')) }} {{ Form::select('establishmentsgroup_id', $group, $storeDetails['establishmentsgroup_id'],['class'=>'form-control','id'=>'establishmentsgroup_id']) }} @if ($errors->has('establishmentsgroup_id')) @endif
{{ Form::label(__('lbl.establishment_type')) }} {{ Form::select('establishment_type', Config::get('constants.establishment_type'),$storeDetails['establishment_type'],['class'=>'form-control','id'=>'establishment_type']) }} @if ($errors->has('establishment_type')) @endif
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('start_time', $storeDetails['start_time'],["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"start_time"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('end_time', $storeDetails['end_time'],["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"end_time"]) }}
{{ Form::label(__('lbl.estatimezone')) }} {{ Form::select('establishment_timezone', Helper::timezones(), $storeDetails['establishment_timezone'],['class'=>'form-control','id'=>'establishment_timezone']) }}
{{ Form::label(__('lbl.default_order_type')) }} {{ Form::select('default_order_type', ['1'=>'YES','0'=>'NO'], $storeDetails['default_order_type'],['class'=>'form-control','id'=>'default_order_type']) }}
{{ Form::label('Image') }} @if ($errors->has('file')) @endif @if($storeDetails['logo'] != "" && $storeDetails['logo'] != 'default.png') @endif
{{ Form::label(__('lbl.is_warehouse')) }}
{{ Form::checkbox('isWarehouse', '1', $storeDetails['isWarehouse']) }}
{{ Form::label(__('lbl.prioritypassid')) }} {{ Form::text('prioritypassid', $storeDetails['prioritypassid'], ["class"=>"form-control mxlen_5 digits","placeholder"=>__('lbl.prioritypassid'),"id"=>"prioritypassid","name"=>"prioritypassid"]) }}
{{ Form::label(__('lbl.express_processing_fee_product_id')) }} {{ Form::text('express_processing_fee_product_id', $storeDetails['express_processing_fee_product_id'], ["class"=>"form-control mxlen_5 digits","placeholder"=>__('lbl.express_processing_fee_product_id'),"id"=>"express_processing_fee_product_id","name"=>"express_processing_fee_product_id"]) }}
{{ Form::label(__('lbl.administrative_fee_product_id')) }} {{ Form::text('administrative_fee_product_id', $storeDetails['administrative_fee_product_id'], ["class"=>"form-control mxlen_5 digits","placeholder"=>__('lbl.administrative_fee_product_id'),"id"=>"administrative_fee_product_id","name"=>"administrative_fee_product_id"]) }}
{{ Form::label(__('lbl.products_annex_b2_revenue_section')) }} {{ Form::text('products_annex_b2_revenue_section', isset($storeDetails['products_annex_b2_revenue_section'])?$storeDetails['products_annex_b2_revenue_section']:'', ["class"=>"form-control mxlen_100 comma_sparated","placeholder"=>__('lbl.products_annex_b2'),"id"=>"products_annex_b2_revenue_section","name"=>"products_annex_b2_revenue_section"]) }}
{{ Form::label(__('lbl.default_clockout_time')) }}
{{ Form::text('default_clockout_time', $storeDetails['default_clockout_time'],["class"=>"form-control timepicker","placeholder"=>__('lbl.default_clockout_time'),"id"=>"","name"=>"default_clockout_time"]) }}
{{ Form::label('Latitude')}} {{ Form::text('latitude', $storeDetails['latitude'], ["class"=>"form-control ","placeholder"=>'Latitude',"id"=>"latitude","name"=>"latitude"]) }}
{{ Form::label('Longitude') }} {{ Form::text('longitude', $storeDetails['longitude'], ["class"=>"form-control ","placeholder"=>'Longitude',"id"=>"longitude","name"=>"longitude"]) }}

{{__('lbl.estaonlineconfig')}}


{{ Form::label(__('lbl.storeshowinweb')) }} {{ Form::select('storeshowinweb', ['1'=>__('lbl.yes'),'0'=>__('lbl.no')], $storeDetails['storeshowinweb'], ["class"=>"form-control",'name'=>'storeshowinweb']) }}
{{ Form::label(__('lbl.currentlyweare')) }} {{ Form::select('isonlineoffline', ['online'=>__('lbl.online'),'offline'=>__('lbl.offline')], $storeDetails['isonlineoffline'], ["class"=>"form-control",'name'=>'isonlineoffline']) }}
{{ Form::label(__('lbl.deliveryoption')) }} {{ Form::select('deliveryoption', ['1'=>__('lbl.show'),'0'=>__('lbl.hide')], $storeDetails['deliveryoption'], ["class"=>"form-control",'name'=>'deliveryoption']) }}
{{ Form::label(__('lbl.weborderbanner')) }} @if ($storeDetails['weborderbanner'] != "banner.png") @endif
@if(!empty($storeDetails['establishmentsavailability']) && is_array($storeDetails['establishmentsavailability'])) @foreach($storeDetails['establishmentsavailability'] as $setDay) @endforeach @else @php $getDays = config('constants.days'); @endphp @if(is_array($getDays)) @foreach($getDays as $setDay) @endforeach @endif @endif
{{__('lbl.days')}} {{__('lbl.isopen')}} {{ Form::label(__('lbl.start_time')) }} {{ Form::label(__('lbl.end_time')) }}
{{$setDay['day']}}
{{ Form::text('starttime['.$setDay['day'].']', $setDay['starttime'], ["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time')]) }}
{{ Form::text('endtime['.$setDay['day'].']', $setDay['endtime'], ["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time')]) }}
{{$setDay}}
{{ Form::text('starttime['.$setDay.']', old('starttime['.$setDay.']'), ["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time')]) }}
{{ Form::text('endtime['.$setDay.']', old('endtime['.$setDay.']'), ["class"=>"form-control timepickerendtime","placeholder"=>__('lbl.start_time')]) }}

{{ Form::button(' '. __('lbl.save'),["type"=>"submit","name"=>"submit","value"=>"submit","class"=>"clickbtncommon btn-sm btn btn-primary "]) }} {{ __('lbl.cancel') }}
{{ Form::close() }}
@endsection @section('pagescript') {!! Helper::pagejs([ 'js/lib/select2/dist/js/select2.full.min.js', 'js/lib/moment/min/moment.min.js', 'js/lib/bootstrap-daterangepicker/daterangepicker.js', 'js/lib/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js', 'js/lib/plugins/timepicker/bootstrap-timepicker.min.js', 'js/backend/establishments/add_edit.js' ]) !!} @stop