@extends('admin.layouts.master') @section('content')
{{ $page_heading }}
Back
@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
Brand Name *
@if((!empty($new_updation) && array_key_exists('brand_name',$new_updation)) && $new_updation['brand_name']!="" && $restaurent->brand_name!="")
@endif
Brand Name AR*
@if((!empty($new_updation) && array_key_exists('brand_name_ar',$new_updation)) && $new_updation['brand_name_ar']!="" && $restaurent->brand_name_ar!="")
@endif
First Name *
@if(!empty($new_updation) && array_key_exists('first_name',$new_updation) && $new_updation['first_name']!=null)
@endif
Last Name *
@if(!empty($new_updation) && array_key_exists('last_name',$new_updation) && $new_updation['last_name']!="")
@endif
@if($customer->id ==null)
Email *
Password @if ($customer->id == null) * @endif
id == null) required @endif>
@endif
Country Code *
Select Country Code
@foreach ($codes as $country)
country_dial_code == $customer->dial_code ? 'selected' : ($country->country_dial_code == 971 ? 'selected' : '') }}> +{{ $country->country_dial_code }}
@endforeach
Phone *
Gender *
Select
gender == 1 ? 'selected' : '' }}>Male
gender == 2 ? 'selected' : '' }}>Female
gender == 3 ? 'selected' : '' }}>Others
Status
status == 1 ? 'selected' : '' }}>Active
status == 0 ? 'selected' : '' }}>Inactive
Available
available == 1 ? 'selected' : '' }}>Yes
available == 0 ? 'selected' : '' }}>No
@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
Cuisine *
@foreach($cuisine as $value)
id,$selectedCuisines)) selected="selected" @endif>{{$value->cuisine_name}}
@endforeach
@if(array_key_exists('cuisine_id',$new_updation) && $show_cusn_update == 1) @php $newcuisine = explode(",",$new_updation['cuisine_id']) @endphp
@foreach($cuisine as $value)
id,$newcuisine)) selected="selected" @endif>{{$value->cuisine_name}}
@endforeach
@endif
Other Information
License Expiration Date *
Maintenance Expiration Date *
Agreement Expiration Date *
Preperation Time *
preparation_time=='mins') selected @endif> Mins
preparation_time=='hour') selected @endif> Hour
preparation_time=='day') selected @endif> Day
Order Limit Per Hour
@if(!empty($new_updation) && array_key_exists('order_limit_per_hour',$new_updation) && $new_updation['order_limit_per_hour'] > 0)
@endif
TOM's Margin (%)
Delivery Fee
Allow Order
allow_ordertype==0) selected @endif> Both
allow_ordertype==1) selected @endif> Current Orders
allow_ordertype==2) selected @endif> Scheduled Orders
@if(!empty($new_updation) && array_key_exists('allow_ordertype',$new_updation))
Both
Current Orders
Scheduled Orders
@endif
License Ownership
license_ownership==0) selected @endif> Unset
license_ownership==1) selected @endif> Chef License
license_ownership==2) selected @endif> Tom License
Description(English) *
@if($customer->about_me!=null){{ $customer->about_me }}@elseif(!empty($new_updation) && array_key_exists('about_me',$new_updation)){{$new_updation['about_me']}}@endif
@if(!empty($new_updation) && array_key_exists('about_me',$new_updation) && $customer->about_me!=null)
{{$new_updation['about_me']}}
@endif
Description(Arabic) *
{{ $customer->about_me_ar }}
@if(!empty($new_updation) && array_key_exists('about_me_ar',$new_updation) && $new_updation['about_me_ar']!=null)
{{$new_updation['about_me_ar']}}
@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
Bank *
Select Bank
@if (!empty($banks)) @foreach ($banks as $row)
id == $customer->bank_id) selected="selected" @endif> {{ $row->name_en }}
@endforeach @endif
@if(!empty($new_updation) && array_key_exists('bank_id',$new_updation) && $new_updation['bank_id'] >0)
Select Bank
@if (!empty($banks)) @foreach ($banks as $row)
id == $new_updation['bank_id'] ? 'selected' : '' }}> {{ $row->name_en }}
@endforeach @endif
@endif
Branch *
@if(!empty($new_updation) && array_key_exists('bank_branch',$new_updation) && $new_updation['bank_branch']!=null)
@endif
Account Number *
@if(!empty($new_updation) && array_key_exists('account_no',$new_updation)&& $new_updation['account_no']!=null)
@endif
Beneficiary Name *
@if(!empty($new_updation) && array_key_exists('benificiary',$new_updation) && $new_updation['benificiary']!=null)
@endif
IBAN(23 Characters) *
@if(!empty($new_updation) && array_key_exists('ifsc',$new_updation) && $new_updation['ifsc']!=null)
@endif
Swift(8 - 11 Characters) *
@if(!empty($new_updation) && array_key_exists('swift',$new_updation) && $new_updation['swift']!=null)
@endif
Timing
Start Time *
End Time *
allow_ordertype==1) style="display:none" @endif>
Weekly Order Mode
weekly_order_mode==1){{ 'checked' }}@endif>
Documents (.png, .jpg, .jpeg, .pdf)
Emirates ID
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
Passport
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
Trade License
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
Bank Account Proof
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
Residency Visa
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
Country *
Select Country
@foreach ($countries as $country)
country_id == $customer->country_id ? 'selected' : '' }}> {{ $country->country_name }}
@endforeach
@if(!empty($new_updation) && array_key_exists('country_id',$new_updation) && $new_updation['country_id']>0)
Select Country
@foreach ($countries as $country)
country_id == $new_updation['country_id'] ? 'selected' : '' }}> {{ $country->country_name }}
@endforeach
@endif
City *
Select City
@foreach ($cities as $city)
id == $customer->city_id ? 'selected' : '' }}> {{ $city->city_name_en }}
@endforeach
@if(!empty($new_updation) && array_key_exists('city_id',$new_updation) && $new_updation['city_id']>0)
Select City
@foreach ($cities as $city)
id == $new_updation['city_id'] ? 'selected' : '' }}> {{ $city->city_name_en }}
@endforeach
@endif
Nick Name
@if(!empty($new_updation) && array_key_exists('loc_nickname',$new_updation) && $new_updation['loc_nickname']!= $customer->loc_nickname && $customer->loc_nickname !=null )
@endif
Apartment Number
*
@if(!empty($new_updation) && array_key_exists('apartment_num',$new_updation) && $customer->apartment_num!=$new_updation['apartment_num'] && $customer->apartment_num !=null)
@endif
Building
*
@if(!empty($new_updation) && array_key_exists('building',$new_updation) && $customer->building!=$new_updation['building'] && $customer->building !=null)
@endif
Street
*
@if(!empty($new_updation) && array_key_exists('street',$new_updation)&& $customer->street!=$new_updation['street'] && $customer->street !=null)
@endif
Landmark
@if(!empty($new_updation) && array_key_exists('landmark',$new_updation) && $customer->landmark!=$new_updation['landmark'] && $customer->landmark !=null)
@endif
Location
*
@if($customer->new_updation!=null)
Reject
@endif
{{--
Address *
{{ $customer->location }}
--}}
@endsection @section('footerJs') @endsection