{{-- Tabs Navigation --}}
{{-- Summary Tab --}}
| Title: |
{{ $profile->title ?: 'Not specified' }} |
| Full Names: |
{{ $profile->name }} |
| Job Title: |
{{ $profile->jobtitle ?: 'Not assigned' }} |
| Department: |
{{ $profile->department ? $profile->getDepartment->departmentname : 'Not assigned' }} |
| Email: |
{{ $profile->email }} |
| Telephone: |
{{ $profile->tel_no ?: 'N/A' }} |
| Mobile: |
{{ $profile->mob_no ?: 'N/A' }} |
| Line Manager: |
{{ $profile->line_manager == '' ? 'Not assigned' : $profile->getLineManager->name }} |
| Holiday Approver: |
{{ $profile->holiday_approver == '' ? 'Not assigned' : $profile->getHolidayApprover->name }} |
| Report to: |
@php
$reportToIds = explode(',', trim($profile->report_to));
$names = \App\Models\Profile::whereIn('id', $reportToIds)
->pluck('name')
->toArray();
if ($names) {
$badgeText = implode(', ', $names);
} else {
$badgeText = '—';
}
@endphp
{{ $badgeText }}
|
| Join Date: |
{{ date('d/m/Y', strtotime($profile->join_date)) }} |
| Length of Service: |
@php
$startDate = $profile->join_date;
$startDateObj = new DateTime($startDate);
$currentDateObj = new DateTime();
$interval = $startDateObj->diff($currentDateObj);
$years = $interval->y;
$months = $interval->m;
echo "$years years and $months months";
@endphp
|
| Location: |
@if($profile->location)
{{ $profile->getLocation->locationname }} - {{ $profile->getLocation->countrycode }}
@else
Not assigned
@endif
|
{{-- Jobs Tab --}}
| Job Title: |
{{ $profile->jobtitle ?: 'Not assigned' }} |
| Person Type: |
{{ $profile->person_type ?: 'Not specified' }} |
| Is a Director? |
@if($profile->is_director == 1)
Yes
@else
No
@endif
|
| Department: |
{{ $profile->department ? $profile->getDepartment->departmentname : 'Not assigned' }} |
| Division: |
{{ $profile->division ? $profile->getDivision->divisionname : 'Not assigned' }} |
| Location: |
@if($profile->location)
{{ $profile->getLocation->locationname }} - {{ $profile->getLocation->countrycode }}
@else
Not assigned
@endif
|
| Full/Part-Time: |
{{ $profile->fullparttime ?: 'Not specified' }} |
| Weekly Hours: |
{{ $profile->weeklyhours ? $profile->weeklyhours . ' hours' : 'Not specified' }} |
| Join Date: |
{{ date('d/m/Y', strtotime($profile->join_date)) }} |
| Length of Service: |
@php
$startDate = $profile->join_date;
$startDateObj = new DateTime($startDate);
$currentDateObj = new DateTime();
$interval = $startDateObj->diff($currentDateObj);
$years = $interval->y;
$months = $interval->m;
echo "$years years and $months months";
@endphp
|
| Employee Type: |
{{ $profile->employee_type ?: 'Not specified' }} |
| Employee Ref: |
{{ $profile->employee_ref ?: 'Not assigned' }} |
| Probation Date: |
{{ $profile->probation_date ? date('d/m/Y', strtotime($profile->probation_date)) : 'Not specified' }} |
@if ($profile->ext_prob == 1)
| Extended Probation: |
{{ date('d/m/Y', strtotime($profile->extend_probation_date)) }}
{{ $profile->ext_probation_reason }}
|
@endif
| Notice Period: |
{{ $profile->notice_period ?: 'Not specified' }} |
| Currency: |
{{ $profile->currency ?: 'Not specified' }} |
{{-- Personal Tab --}}
| Title: |
{{ $profile->title ?: 'Not specified' }} |
| Full Names: |
{{ $profile->name }} |
| Marital Status: |
{{ $profile->marital_status ?: 'Not disclosed' }} |
| Gender: |
{{ $profile->gender ?: 'Not disclosed' }} |
| Date of Birth: |
{{ $profile->dob ? date('d/m/Y', strtotime($profile->dob)) : 'Not specified' }} |
| Age: |
@if($profile->dob)
@php
$startDate = $profile->dob;
$startDateObj = new DateTime($startDate);
$currentDateObj = new DateTime();
$interval = $startDateObj->diff($currentDateObj);
$years = $interval->y;
echo "$years years";
@endphp
@else
Not specified
@endif
|
@if(!empty($profile->address1) || !empty($profile->address2) || !empty($profile->address3) || !empty($profile->town) || !empty($profile->postcode) || !empty($profile->country))
@if (!empty($profile->address1))
{{ $profile->address1 }}
@endif
@if (!empty($profile->address2))
{{ $profile->address2 }}
@endif
@if (!empty($profile->address3))
{{ $profile->address3 }}
@endif
@if (!empty($profile->town))
{{ $profile->town }}
@endif
@if (!empty($profile->postcode))
{{ $profile->postcode }}
@endif
@if (!empty($profile->country))
{{ $profile->country }}
@endif
@else
No address information provided
@endif
{{-- Diversity Section --}}
| Nationality: |
{{ $profile->nationally ?: 'Not disclosed' }} |
| Disability: |
{{ $profile->disability == 1 ? 'Yes' : ($profile->disability === 0 ? 'No' : 'Not disclosed') }} |
| Ethnicity: |
{{ $profile->ethnicity ?: 'Not disclosed' }} |
| Religion: |
{{ $profile->religion ?: 'Not disclosed' }} |
| Sexual Orientation: |
{{ $profile->sexorientation ?: 'Not disclosed' }} |