@if(isset($record->username))
@php $username=$record->username @endphp
@elseif(old('username'))
@php $username=old('username') @endphp
@else
@php $username='' @endphp
@endif
@error('username')
{{ $message }}
@enderror
@if(isset($record->full_name))
@php $full_name=$record->full_name @endphp
@elseif(old('full_name'))
@php $full_name=old('full_name') @endphp
@else
@php $full_name='' @endphp
@endif
@error('full_name')
{{ $message }}
@enderror
@if(isset($record->phone))
@php $phone=$record->phone @endphp
@elseif(old('phone'))
@php $phone=old('phone') @endphp
@else
@php $phone='' @endphp
@endif
@error('phone')
{{ $message }}
@enderror
@if(isset($record->email))
@php $email=$record->email @endphp
@elseif(old('email'))
@php $email=old('email') @endphp
@else
@php $email='' @endphp
@endif
@error('email')
{{ $message }}
@enderror
@if(isset($record->age))
@php $age=$record->age @endphp
@elseif(old('age'))
@php $age=old('age') @endphp
@else
@php $age='' @endphp
@endif
@error('age')
{{ $message }}
@enderror
@if(isset($record->gender))
@php $gender=$record->gender @endphp
@elseif(old('gender'))
@php $gender=old('gender') @endphp
@else
@php $gender='' @endphp
@endif
@error('age')
{{ $message }}
@enderror
@if(old('country_id'))
@php $country_id = old('country_id'); @endphp
@elseif(isset($record->country_id) && $record->country_id != '')
@php $country_id = $record->country_id; @endphp
@else
@php $country_id = ''; @endphp
@endif
@error('country_id')
{{ $message }}
@enderror
@if(old('state_id'))
@php $state_id = old('state_id'); @endphp
@elseif(isset($record->state_id) && $record->state_id != '')
@php $state_id = $record->state_id; @endphp
@else
@php $state_id = ''; @endphp
@endif
@error('state_id')
{{ $message }}
@enderror
@if(old('city_id'))
@php $city_id = old('city_id'); @endphp
@elseif(isset($record->city_id) && $record->city_id != '')
@php $city_id = $record->city_id; @endphp
@else
@php $city_id = ''; @endphp
@endif
@error('city_id')
{{ $message }}
@enderror
@if(isset($record->height))
@php $height=$record->height @endphp
@elseif(old('height'))
@php $height=old('height') @endphp
@else
@php $height='' @endphp
@endif
@error('height')
{{ $message }}
@enderror
@if(isset($record->weight))
@php $weight=$record->weight @endphp
@elseif(old('weight'))
@php $weight=old('weight') @endphp
@else
@php $weight='' @endphp
@endif
@error('weight')
{{ $message }}
@enderror
@error('image')
{{ $message }}
@enderror
@if(isset($record->image) && $record->image!="")
@php $image=asset(Storage::url('public/users')).'/'.$record->id.'/'.$record->image @endphp
@else
@php $image='' @endphp
@endif
@if($image!="")
@endif
Activity Levels
@php $activity_levels=[] @endphp
@if(isset($record) && $record->activity_levels)
@php $activity_levels=$record->activity_levels->pluck('id')->toArray() @endphp
@endif
Medical Issues
@php $medical_issues=[] @endphp
@if(isset($record) && $record->medical_issues)
@php $medical_issues=$record->medical_issues->pluck('id')->toArray() @endphp
@endif
Preferences
@php $preferences=[] @endphp
@if(isset($record) && $record->preferences)
@php $preferences=$record->preferences->pluck('id')->toArray() @endphp
@endif