@if (isset($customer) && isset($customer->getFirstMedia('image')->original_url))
@endif
@if (Request::is('backend/customer/create'))
@endif
@php
if (isset($customer->primaryAddress->country_id) || old('country_id')) {
$states = \App\Models\State::where(
'country_id',
old('country_id', @$customer->primaryAddress->country_id),
)->get();
} else {
$states = [];
}
@endphp
@php
$addressType = isset($customer) && $customer->primaryAddress ? $customer->primaryAddress->type : old('address_type');
$isCustomType = $addressType && $addressType !== 'home' && $addressType !== 'work';
@endphp
{{--
--}}
@push('js')
@endpush