@if (Auth::user()->getFirstMediaUrl('image') && Auth::user()->getFirstMediaUrl('image') !== null)
@endif
@if (!Auth::user()->hasRole('admin'))
@php
$address = auth()->user()->PrimaryAddress;
if (isset($address->country_id) || old('country_id')) {
$states = \App\Models\State::where(
'country_id',
old('country_id', @$address->country_id),
)->get();
} else {
$states = [];
}
@endphp
@php
$default = old('country_id', @$address->country_id);
@endphp
@endif
@if (!Auth::user()->hasRole('admin'))
@else
@endif
@if (!Auth::user()->hasRole('admin'))