@extends('layout.layout') @section('content')
@if (session('success')) @endif
Staff Image
Full Name: {{ $staff->full_name }}
Role: {{ $staff->role->name ?? '' }}
Designation: {{ $staff->designations->title ?? '' }}
Department: {{ $staff->departments->name ?? '' }}
Basic Salary: {{ $staff->basic_salary }}
Date of Joining: {{ $staff->date_of_joining }}
Staff Number: {{ $staff->staff_no }}
Gender: {{ $staff->genders->base_setup_name ?? '' }}
Phone Number:
{{ $staff->mobile }}
Emergency Mobile:
{{ $staff->emergency_mobile }}
Email:
{{ $staff->email }}
Driving License:
{{ $staff->driving_license }}
Date of Birth:
{{ $staff->date_of_birth }}
Marital Status:
{{ $staff->marital_status }}
Father Name:
{{ $staff->fathers_name }}
Mother Name:
{{ $staff->mothers_name }}
Qualifications:
{{ $staff->qualification }}
Experience:
{{ $staff->experience }}
Permanent Address:
{{ $staff->permanent_address }}
Current Address:
{{ $staff->current_address }}
Role Type:
{{ $staff->roleType->title ?? '' }}
EPF No:
{{ $staff->epf_no }}
Hourly Rate / Overtime:
{{ $staff->hourly_rate }}
Contract Type:
{{ $staff->contract_type }}
Bank Account Name:
{{ $staff->bank_account_name }}
Account No:
{{ $staff->bank_account_no }}
Bank Name:
{{ $staff->bank_name }}
Branch Name:
{{ $staff->bank_brach }}
Facebook:
Twitter:
LinkedIn:
Instagram:
Project Access:
@php $accesses = json_decode($staff->user->project_access, true); @endphp @if (is_array($accesses) && count($accesses)) @foreach ($accesses as $access) {{ ucfirst($access) }} @endforeach @else No access assigned @endif
Resume:
@if ($staff->resume) View Resume @else No resume uploaded @endif
Joining Letter:
@if ($staff->joining_letter) View Joining Letter @else No joining letter uploaded @endif
Other Document:
@if ($staff->other_document) View Other Document @else No other document uploaded @endif
@if ($staff->educations && $staff->educations->count())
@foreach ($staff->educations as $education)
{{ $education->degree ?? '—' }} in {{ $education->specialization ?? '—' }}

University: {{ $education->university ?? '—' }}

Completed: {{ $education->date_of_completion ?? '—' }}

@endforeach
@else No education records found. @endif
@if ($staff->workExperiences && $staff->workExperiences->count())
@foreach ($staff->workExperiences as $workExperience)
{{ $workExperience->company_name ?? '—' }}

Title: {{ $workExperience->title ?? '—' }}

From: {{ $workExperience->from ?? '—' }}

To: {{ $workExperience->to ?? '—' }}

@endforeach
@else No work experience records found. @endif
@if ($staff->productStaff && $staff->productStaff->count())
@foreach ($staff->productStaff as $productStaff)
{{ $productStaff->product->name_en }}
@endforeach
@else No activities records found. @endif
@if ($staff->slotEmp && $staff->slotEmp->count()) @php $groupedSlots = $staff->slotEmp->groupBy('slot_day'); @endphp
@foreach ($groupedSlots as $day => $slots)
{{ ucfirst($day) }}
@foreach ($slots as $slot) {{ $slot->slot_start }} - {{ $slot->slot_end }} @endforeach
@endforeach
@else No slots records found. @endif
@if ($staff->TrackAssignedStaff && $staff->TrackAssignedStaff->count())
@foreach ($staff->TrackAssignedStaff as $trackAssignedStaff)
{{ $trackAssignedStaff->track->name_en }}
@endforeach
@else No specialization records found. @endif
@endsection