@include('layouts.header')
{{@$currentUser->name}}
{{@$currentUser->department}}
{{@$currentUser->role}}
Employee ID : {{@($currentUser->employee_id)?$currentUser->employee_id:'N/A'}}
{{@$currentUser->email}}
My Messages
Phone:
{{@($currentUserPersonalInfo->phone)?$currentUserPersonalInfo->phone:'N/A'}}
Email:
{{@($currentUserPersonalInfo->personal_email)?$currentUserPersonalInfo->personal_email:'N/A'}}
Birthday:
{{@($currentUserPersonalInfo->dob)?date('d M, Y', strtotime($currentUserPersonalInfo->dob)):'N/A'}}
Address:
{{@($currentUserPermanentAddress->address)?$currentUserPermanentAddress->address:'N/A'}}
Gender:
{{@($currentUserPersonalInfo->gender->gender)?$currentUserPersonalInfo->gender->gender:'N/A'}}
Current Address
Permanent Address
Passport Details
Emergency Contacts
Current Address
@csrf
Country
Select Country
@php($currentCountryId = old('currentCountryId')?old('currentCountryId'):(@$currentUserCurrentAddress->country->id)) @foreach($countries as $country)
id == $currentCountryId)?'selected':''}}>{{$country->name}}
@endforeach
@error('currentCountryId')
{{ $message }}
@enderror
State
Select State
@if($currentCountryId) @php($currentStateId = old('currentStateId')?old('currentStateId'):(@$currentUserCurrentAddress->state->id)) @php($states = \App\Country::find($currentCountryId)->states) @foreach($states as $state)
id == $currentStateId)?'selected':''}}>{{$state->name}}
@endforeach @endif
@error('currentStateId')
{{ $message }}
@enderror
City
Select City
@if(isset($currentStateId)) @php($currentCityId = old('currentCityId')?old('currentCityId'):(@$currentUserCurrentAddress->city->id)) @php($cities = \App\State::find($currentStateId)->cities) @foreach($cities as $city)
id == $currentCityId)?'selected':''}}>{{$city->name}}
@endforeach @endif
@error('currentCityId')
{{ $message }}
@enderror
Postcode
@error('currentPostCode')
{{ $message }}
@enderror
Address
{{old('currentAddress')?old('currentAddress'):@$currentUserCurrentAddress->address}}
@error('currentAddress')
{{ $message }}
@enderror
Permanent address same as Current address?
Permanent Address
@csrf
Country
Select Country
@php($permanentCountryId = old('permanentCountryId')?old('permanentCountryId'):(@$currentUserPermanentAddress->country->id)) @foreach($countries as $country)
id == $permanentCountryId)?'selected':''}}>{{$country->name}}
@endforeach
@error('permanentCountryId')
{{ $message }}
@enderror
State
Select State
@if($permanentCountryId) @php($permanentStateId = old('permanentStateId')?old('permanentStateId'):(@$currentUserPermanentAddress->state->id)) @php($states = \App\Country::find($permanentCountryId)->states) @foreach($states as $state)
id == $permanentStateId)?'selected':''}}>{{$state->name}}
@endforeach @endif
@error('permanentStateId')
{{ $message }}
@enderror
City
Select City
@if(isset($permanentStateId)) @php($permanentCityId = old('permanentCityId')?old('permanentCityId'):(@$currentUserPermanentAddress->city->id)) @php($cities = \App\State::find($permanentStateId)->cities) @foreach($cities as $city)
id == $permanentCityId)?'selected':''}}>{{$city->name}}
@endforeach @endif
@error('permanentCityId')
{{ $message }}
@enderror
Postcode
@error('permanentPostCode')
{{ $message }}
@enderror
Address
{{old('permanentAddress')?old('permanentAddress'):@$currentUserPermanentAddress->address}}
@error('permanentAddress')
{{ $message }}
@enderror
Passport Details
@csrf
Passport No.
@error('passportNumber')
{{ $message }}
@enderror
Passport Exp Date
@error('passportExpDate')
{{ $message }}
@enderror
Country Of Issue
Select Country
@php($passportCountryId = old('passportCountryId')?old('passportCountryId'):(@($currentUserPassport->country->id))) @foreach($countries as $country)
id == $passportCountryId)?'selected':''}}>{{$country->name}}
@endforeach
@error('passportCountryId')
{{ $message }}
@enderror
Upload Document (in PDF)
@if($errors->has('attachment'))
{{ $errors->first('attachment') }}
@endif
@if(@$currentUserPassport->attachment_path)
@endif
Emergency Contacts
@csrf
Name
@error('emergencyContactName')
{{ $message }}
@enderror
Phone
@error('emergencyContactPhone')
{{ $message }}
@enderror
Relationship
Select Relationship
@php($relationId = old('emergencyContactRelationId')?old('emergencyContactRelationId'):(@($currentUserEmergencyContact->relation->id))) @foreach($relations as $relation)
id)? "selected":""}}>{{$relation->relation}}
@endforeach
@error('emergencyContactRelationId')
{{ $message }}
@enderror
Second Contact Name
@error('emergencyContactName2')
{{ $message }}
@enderror
Second Contact Phone
@error('emergencyContactPhone2')
{{ $message }}
@enderror
Second Contact Relationship
Select Relationship
@php($secondrelationId = old('emergencyContactRelationId2')?old('emergencyContactRelationId2'):(@($currentUserEmergencyContact->second_relation->id))) @foreach($relations as $relation)
id)? "selected":""}}>{{$relation->relation}}
@endforeach
@error('emergencyContactRelationId2')
{{ $message }}
@enderror
@csrf
Profile Information
×
edit
@if($errors->has('avatar'))
{{ $errors->first('avatar') }}
@endif
Name
Identification Number
@error('identificationNumber')
{{ $message }}
@enderror
Personal Email
@error('personalEmail')
{{ $message }}
@enderror
Phone Number
@error('phone')
{{ $message }}
@enderror
Birth Date
@error('dob')
{{ $message }}
@enderror
Gender
Select Gender
@php($genderId = old('genderId')?old('genderId'):(@($currentUserPersonalInfo->gender->id))) @foreach($genders as $gender)
id)? "selected":""}}>{{$gender->gender}}
@endforeach
@error('genderId')
{{ $message }}
@enderror
Nationality
@error('nationality')
{{ $message }}
@enderror
@include('layouts.footer')