@php $arr_display_name = []; if(!empty($customer->title)){ if(isset($title[$customer->title])){ $display_title = $title[$customer->title]; $first_name = $customer->fname; $last_name = $customer->lname; $business_name = $customer->business_name; $option_1 = $display_title .' '. $first_name .' '. $last_name .', '. $business_name; $option_2 = $first_name .' '. $last_name .', '. $business_name; $option_3 = $first_name .', '. $business_name; $option_4 = $last_name .', '. $business_name; $option_5 = $business_name; $option_6 = $first_name .' '. $last_name; $option_7 = $business_name .', '. $first_name .' '. $last_name; $option_8 = $business_name .', '. $first_name; $option_9 = $business_name .', '. $last_name; $arr_display_name = [$option_1,$option_2,$option_3,$option_4,$option_5,$option_6,$option_7,$option_8,$option_9]; } } @endphp
@csrf @method('PUT') {{--Don't change these fields--}}
{{--Don't change above fields--}}
×
Update customer
Basic information
Account information
Payment information
Basic Information
Title *
select
@foreach($title as $key => $value)
title==$key)?'selected=true':''}} value={{ $key }}>{{ $value }}
@endforeach
First Name *
Last Name *
Business Name *
Contact Display *
@if(!empty($arr_display_name)) @foreach($arr_display_name as $key => $value)
display_name == $value) ? 'selected' : ''}}>{{$value}}
@endforeach @endif
Address
{{ ($customer->address) ? $customer->address : '' }}
Email *
Telephone *
Account Details
Tax treatment *
select
@if(@isset($data['tax_treatments'])) @foreach($data['tax_treatments'] as $key => $value)
tax_treatment_id == $key) ? 'selected="true"': ''}} value={{ $key }}>{{$value}}
@endforeach @endisset
@if($data['tax_flag'] == 1)
Tax registration number(TRN) *
@endif @if($data['tax_flag'] == 0)
Tax registration number(TRN) *
@endif
@if($data['flag'] == 1)
Place of supply *
--Select --
@foreach($data['state'] as $key => $value)
state_id == $key) ? 'selected="true"': ''}} value={{ $key }}>{{$value}}
@endforeach
{{--
--Select --
--}}
@endif @if($data['flag'] == 0)
Place of supply *
--Select --
@foreach($data['country'] as $key => $value)
country_id == $key) ? 'selected="true"': ''}} value={{ $key }}>{{$value}}
@endforeach
{{--
--Select --
--}}
Province *
@foreach($data['state'] as $key => $value)
state_id == $key) ? 'selected="true"': ''}} value={{ $key }}>{{$value}}
@endforeach
@endif
Province *
City or Area
@foreach($data['city'] as $key => $value)
city_id == $key) ? 'selected="true"': ''}} value={{ $key }}>{{$value}}
@endforeach
Payment Settings
Credit Limit
Credit Period (In days)