@extends('layouts.adminLayout.admin_design') @section('content')
{{ Form::open(['url' => route('establishments_create'), '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::label(__('lbl.business_name')) }} {{ Form::text('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', '', ["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', '', ["class"=>"form-control phoneUS mxlen_14","maxlength"=>10,"placeholder"=>__('lbl.phone_number'),"id"=>"phone","name"=>"phone"]) }} @if ($errors->has('title')) @endif
{{ Form::label(__('lbl.fax')) }} {{ Form::text('fax', '', ["class"=>"form-control faxUS mxlen_14","placeholder"=>__('lbl.fax'),"id"=>"fax","name"=>"fax"]) }} @if ($errors->has('fax')) @endif
{{ Form::label(__('lbl.email')) }} {{ Form::text('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', '', ["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', '', ["class"=>"form-control mxlen_50","placeholder"=>__('lbl.retailer_id'),"id"=>"retailer_id","name"=>"retailer_id"]) }} @if ($errors->has('retailer_id')) @endif
{{ Form::label(__('lbl.address_1')) }} {{ Form::text('address_line_f', '', ["class"=>"form-control mxlen_40","placeholder"=>__('lbl.address_1'),"id"=>"address_line_f","name"=>"address_line_f"]) }} @if ($errors->has('address_line_f')) @endif
{{ Form::label(__('lbl.address_2')) }} {{ Form::text('address_line_s', '', ["class"=>"form-control mxlen_40","placeholder"=>__('lbl.address_2'),"id"=>"address_line_s","name"=>"address_line_s"]) }} @if ($errors->has('address_line_s')) @endif
{{ Form::label(__('lbl.country')) }} {{ Form::text('country', 'United States', ["class"=>"form-control mxlen_25","placeholder"=>__('lbl.country'),"id"=>"country","name"=>"country"]) }} @if ($errors->has('country')) @endif
{{ Form::label(__('lbl.state')) }} {{ Form::text('state', '', ["class"=>"form-control mxlen_20","placeholder"=>__('lbl.state'),"id"=>"state","name"=>"state"]) }}
{{ Form::label(__('lbl.city')) }} {{ Form::text('city', '', ["class"=>"form-control mxlen_25","placeholder"=>__('lbl.city'),"id"=>"city","name"=>"city"]) }}
{{ Form::label(__('lbl.province')) }} {{ Form::text('province', '', ["class"=>"form-control mxlen_25","placeholder"=>__('lbl.province'),"id"=>"province","name"=>"province"]) }} @if ($errors->has('province')) @endif
{{ Form::label(__('lbl.zip')) }} {{ Form::text('zip_postal_code', '', ["class"=>"form-control mxlen_5 digits","placeholder"=>__('lbl.zip'),"id"=>"zip_postal_code","name"=>"zip_postal_code"]) }} @if ($errors->has('zip_postal_code')) @endif
{{ Form::label(__('lbl.currency')) }} {{ Form::select('currency', currencydrop(), 1, ["name"=>"currency","class"=>"form-control select2","id"=>"currency"]) }} @if ($errors->has('currency')) @endif
{{ Form::label(__('lbl.description')) }} {{ Form::textarea('description', '', ["class"=>"form-control ","rows"=>2,"placeholder"=>__('lbl.description'),"id"=>"description","name"=>"description"]) }} @if ($errors->has('description')) @endif
{{ Form::label(__('lbl.establishmentsgroup')) }} {{ Form::select('establishmentsgroup_id', $group,'DEFAULT',['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'),'',['class'=>'form-control','id'=>'establishment_type']) }} @if ($errors->has('establishment_type')) @endif
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('start_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"start_time"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('end_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"end_time"]) }}
{{ Form::label(__('lbl.estatimezone')) }} {{ Form::select('establishment_timezone', Helper::timezones(), old('establishment_timezone'),['class'=>'form-control','id'=>'establishment_timezone']) }}
{{ Form::label(__('lbl.default_order_type')) }} {{ Form::select('default_order_type', ['1'=>'YES','0'=>'NO'], old('default_order_type'),['class'=>'form-control','id'=>'default_order_type']) }}
{{ Form::label('Image') }} @if ($errors->has('logo')) @endif
{{ Form::label(__('lbl.prioritypassid')) }} {{ Form::text('prioritypassid', '', ["class"=>"form-control mxlen_5 digits","placeholder"=>__('lbl.prioritypassid'),"id"=>"prioritypassid","name"=>"prioritypassid"]) }} @if ($errors->has('prioritypassid')) @endif
{{ Form::label(__('lbl.express_processing_fee_product_id')) }} {{ Form::text('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"]) }} @if ($errors->has('express_processing_fee_product_id')) @endif
{{ Form::label(__('lbl.administrative_fee_product_id')) }} {{ Form::text('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"]) }} @if ($errors->has('administrative_fee_product_id')) @endif
{{ Form::label(__('lbl.products_annex_b2_revenue_section')) }} {{ Form::text('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"]) }} @if ($errors->has('products_annex_b2_revenue_section')) @endif
{{ Form::label(__('lbl.is_warehouse')) }}
{{ Form::checkbox('isWarehouse', '1') }}
{{ Form::label(__('lbl.default_clockout_time')) }}
{{ Form::text('default_clockout_time', '',["class"=>"form-control timepicker","placeholder"=>__('lbl.default_clockout_time'),"id"=>"","name"=>"default_clockout_time"]) }}
 
{{ Form::label('Latitude')}} {{ Form::text('latitude', '', ["class"=>"form-control ","placeholder"=>'Latitude',"id"=>"latitude","name"=>"latitude"]) }}
{{ Form::label('Longitude') }} {{ Form::text('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')], '1', ["class"=>"form-control",'name'=>'storeshowinweb']) }}
{{ Form::label(__('lbl.currentlyweare')) }} {{ Form::select('isonlineoffline', ['online'=>__('lbl.online'),'offline'=>__('lbl.offline')], 'online', ["class"=>"form-control",'name'=>'isonlineoffline']) }}
{{ Form::label(__('lbl.deliveryoption')) }} {{ Form::select('deliveryoption', ['1'=>__('lbl.show'),'0'=>__('lbl.hide')], '1', ["class"=>"form-control",'name'=>'deliveryoption']) }}
{{ Form::label(__('lbl.weborderbanner')) }} @if ($errors->has('weborderbanner')) @endif
@php $getDays = config('constants.days'); @endphp @if(is_array($getDays)) @foreach($getDays as $setDay) @endforeach @endif
{{__('lbl.days')}} {{__('lbl.isopen')}} {{ Form::label(__('lbl.start_time')) }} {{ Form::label(__('lbl.end_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