@extends('admin.layouts.master') @section('content')
@php $new_updation = []; @endphp @if(isset($customer) && $customer->new_updation!=null) @php $new_updation = (array)json_decode($customer->new_updation); @endphp @endif
@if (session('error'))
× {{ session('error') }}
@endif
@csrf
Information
@if((!empty($new_updation) && array_key_exists('brand_name',$new_updation)) && $new_updation['brand_name']!="" && $restaurent->brand_name!="") @endif
@if((!empty($new_updation) && array_key_exists('brand_name_ar',$new_updation)) && $new_updation['brand_name_ar']!="" && $restaurent->brand_name_ar!="") @endif
@if(!empty($new_updation) && array_key_exists('first_name',$new_updation) && $new_updation['first_name']!=null) @endif
@if(!empty($new_updation) && array_key_exists('last_name',$new_updation) && $new_updation['last_name']!="") @endif
@if($customer->id ==null)
id == null) required @endif>
@endif
@php $newcuisine = []; $show_cusn_update =1; @endphp @if(array_key_exists('cuisine_id',$new_updation)) @php $newcuisine = explode(",",$new_updation['cuisine_id']) @endphp @endif @if(empty($selectedCuisines) && !empty($newcuisine) ) @php $selectedCuisines = $newcuisine; $show_cusn_update = 0 ; @endphp @endif
@if(array_key_exists('cuisine_id',$new_updation) && $show_cusn_update == 1) @php $newcuisine = explode(",",$new_updation['cuisine_id']) @endphp @endif
Other Information

@if(!empty($new_updation) && array_key_exists('order_limit_per_hour',$new_updation) && $new_updation['order_limit_per_hour'] > 0) @endif
@if(!empty($new_updation) && array_key_exists('allow_ordertype',$new_updation)) @endif
@if(!empty($new_updation) && array_key_exists('about_me',$new_updation) && $customer->about_me!=null) @endif
@if(!empty($new_updation) && array_key_exists('about_me_ar',$new_updation) && $new_updation['about_me_ar']!=null) @endif
Images

Profile Image *

image) data-jqv-required="true" @endif type="file" class="form-control jqv-input jqv-inputboxed formImage image_upload" preview="image_preview" id="image" for="imagePreviewHomepage" placeholder="" name="image" accept=".jpg, .png, .jpeg" value="" @if(empty($customer->id)) required data-parsley-required-message="Select Profile Image" @endif/>

Accepts .jpg, .jpeg, .png formats only.

@if ($customer!=null ) @else
@endif @if(!empty($new_updation) && array_key_exists('image',$new_updation)) @endif

Cover Image *

id)) required data-parsley-required-message="Select Cover Image" @endif class="form-control jqv-input jqv-inputboxed formImage image_upload" preview="cover_preview" id="cover_image" for="imagePreviewHomepage" placeholder="" name="cover_image" accept=".jpg, .png, .jpeg" value=""/>

Accepts .jpg, .jpeg, .png formats only.

@if ($customer!=null ) @else
@endif @if(!empty($new_updation) && array_key_exists('cover_image',$new_updation)) @endif
Bank Information
@if(!empty($new_updation) && array_key_exists('bank_id',$new_updation) && $new_updation['bank_id'] >0) @endif
@if(!empty($new_updation) && array_key_exists('bank_branch',$new_updation) && $new_updation['bank_branch']!=null) @endif
@if(!empty($new_updation) && array_key_exists('account_no',$new_updation)&& $new_updation['account_no']!=null) @endif
@if(!empty($new_updation) && array_key_exists('benificiary',$new_updation) && $new_updation['benificiary']!=null) @endif
@if(!empty($new_updation) && array_key_exists('ifsc',$new_updation) && $new_updation['ifsc']!=null) @endif
@if(!empty($new_updation) && array_key_exists('swift',$new_updation) && $new_updation['swift']!=null) @endif
Timing
allow_ordertype==1) style="display:none" @endif> weekly_order_mode==1){{ 'checked' }}@endif>
Documents (.png, .jpg, .jpeg, .pdf)

id)) required data-parsley-required-message="Select Emirates ID" @endif>
@if($customer->id > 0) @if($customer->emirates_id) {!! viewDocument($customer->emirates_id) !!} {!! downloadDocument($customer->emirates_id) !!} @endif @if(!empty($new_updation) && array_key_exists('emirates_id',$new_updation))
{!! viewDocument($new_updation['emirates_id']) !!} {!! downloadDocument($new_updation['emirates_id']) !!}
@endif @endif

id)) required data-parsley-required-message="Select Passport" @endif>
@if($customer->id > 0) @if($customer->passport_id) {!! viewDocument($customer->passport_id) !!} {!! downloadDocument($customer->passport_id) !!} @endif @if(!empty($new_updation) && array_key_exists('passport',$new_updation))
{!! viewDocument($new_updation['passport']) !!} {!! downloadDocument($new_updation['passport']) !!}
@endif @endif

id)) required data-parsley-required-message="Select Trade License" @endif>
@if($customer->id > 0) @if($customer->trade_license) {!! viewDocument($customer->trade_license) !!} {!! downloadDocument($customer->trade_license) !!} @endif @if(!empty($new_updation) && array_key_exists('trade_license',$new_updation))
{!! viewDocument($new_updation['trade_license']) !!} {!! downloadDocument($new_updation['trade_license']) !!}
@endif @endif

id)) required data-parsley-required-message="Select Bank Account Proof" @endif>
@if($customer->id > 0) @if($customer->bank_account_proof) {!! viewDocument($customer->bank_account_proof) !!} {!! downloadDocument($customer->bank_account_proof) !!} @endif @if(!empty($new_updation) && array_key_exists('bank_account_proof',$new_updation))
{!! viewDocument($new_updation['bank_account_proof']) !!} {!! downloadDocument($new_updation['bank_account_proof']) !!}
@endif @endif

id)) required data-parsley-required-message="Select Residency Visa" @endif>
@if($customer->id > 0) @if($customer->visa_copy) {!! viewDocument($customer->visa_copy) !!} {!! downloadDocument($customer->visa_copy) !!} @endif @if(!empty($new_updation) && array_key_exists('visa_copy',$new_updation))
{!! viewDocument($new_updation['visa_copy']) !!} {!! downloadDocument($new_updation['visa_copy']) !!}
@endif @endif
Address
@if(!empty($new_updation) && array_key_exists('country_id',$new_updation) && $new_updation['country_id']>0) @endif
@if(!empty($new_updation) && array_key_exists('city_id',$new_updation) && $new_updation['city_id']>0) @endif
@if(!empty($new_updation) && array_key_exists('loc_nickname',$new_updation) && $new_updation['loc_nickname']!= $customer->loc_nickname && $customer->loc_nickname !=null ) @endif
@if(!empty($new_updation) && array_key_exists('apartment_num',$new_updation) && $customer->apartment_num!=$new_updation['apartment_num'] && $customer->apartment_num !=null) @endif
@if(!empty($new_updation) && array_key_exists('building',$new_updation) && $customer->building!=$new_updation['building'] && $customer->building !=null) @endif
@if(!empty($new_updation) && array_key_exists('street',$new_updation)&& $customer->street!=$new_updation['street'] && $customer->street !=null) @endif
@if(!empty($new_updation) && array_key_exists('landmark',$new_updation) && $customer->landmark!=$new_updation['landmark'] && $customer->landmark !=null) @endif
@if($customer->new_updation!=null) @endif
{{--
--}}
@endsection @section('footerJs') @endsection