@extends('layouts.admin') @section('header-content') @endsection @section('content')
Customer Details
{!! csrf_field() !!}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('location')) {{ $errors->first('location') }} @endif
@if ($errors->has('sale_officer')) {{ $errors->first('sale_officer') }} @endif
@if ($errors->has('area')) {{ $errors->first('area') }} @endif
@if ($errors->has('latitude')) {{ $errors->first('latitude') }} @endif
@if ($errors->has('longitude')) {{ $errors->first('longitude') }} @endif
@if ($errors->has('phone_1')) {{ $errors->first('phone_1') }} @endif
@if ($errors->has('phone_2')) {{ $errors->first('phone_2') }} @endif
@if ($errors->has('landline')) {{ $errors->first('landline') }} @endif
@if ($errors->has('discount_percentage')) {{ $errors->first('discount_percentage') }} @endif
@if ($errors->has('opening_balance')) {{ $errors->first('opening_balance') }} @endif
@if(isset($shop))
@endif
@if ($errors->has('country')) {{ $errors->first('country') }} @endif
@if ($errors->has('currency')) {{ $errors->first('currency') }} @endif
@if ($errors->has('target_visit')) {{ $errors->first('target_visit') }} @endif
@if ($errors->has('biocos_ratting')) {{ $errors->first('biocos_ratting') }} @endif


@foreach($products as $key=>$product)
@if(isset($shop) && !empty($shop->product_discount)) @foreach($shop->product_discount as $discount) @if($discount->product_id==$product->id) @php $old_discount_id=$discount->product_discount_id; break; @endphp @endif @endforeach @endif
@endforeach


@if(!empty($shop)) @foreach($shop->shopOtherImages($shop->id)->toarray() as $key2=>$value)
@if(isset($value['image_url']) && !empty($value['image_url']))
Remove @endif
@endforeach @endif @if(!isset($key2) || empty($key2)) @endif
Proprietor details
@if ($errors->has('proprietor.'.'name')) {{ $errors->first('proprietor.'.'name') }} @endif
@if ($errors->has('proprietor.'.'email')) {{ $errors->first('proprietor.'.'email') }} @endif
@if ($errors->has('proprietor.'.'address')) {{ $errors->first('proprietor.'.'address') }} @endif
@if ($errors->has('proprietor.'.'phone_1')) {{ $errors->first('proprietor.'.'phone_1') }} @endif
@if ($errors->has('proprietor.'.'phone_2')) {{ $errors->first('proprietor.'.'phone_2') }} @endif
@if ($errors->has('proprietor.'.'landline')) {{ $errors->first('proprietor.'.'landline') }} @endif
Contact Person details
@if ($errors->has('contact_person.'.'name')) {{ $errors->first('contact_person.'.'name') }} @endif
@if ($errors->has('contact_person.'.'email')) {{ $errors->first('contact_person.'.'email') }} @endif
@if ($errors->has('contact_person.'.'address')) {{ $errors->first('contact_person.'.'address') }} @endif
@if ($errors->has('contact_person.'.'phone_1')) {{ $errors->first('contact_person.'.'phone_1') }} @endif
@if ($errors->has('contact_person.'.'phone_2')) {{ $errors->first('contact_person.'.'phone_2') }} @endif
@if ($errors->has('contact_person.'.'landline')) {{ $errors->first('contact_person.'.'landline') }} @endif
@if(!empty($shop)) {!! method_field('PUT') !!} @endif {{ csrf_field() }}
@endsection @section('footer-content') {{-- Append Customer Image --}} {{-- Append Product Discount --}} @endsection