@extends('layouts.dashboard') @section('title', $staff->user->name ?? 'Staff Details') @section('page-content')
Staff / {{ $staff->staff_id }}

{{ $staff->user->name }}

{{ $staff->position ?? $staff->staff_type }}

@can('update-staff') Edit Staff @endcan

Personal Information

{{ $staff->staff_id }}

{{ $staff->user->email }}

{{ $staff->user->phone ?? 'N/A' }}

{{ $staff->department->name ?? 'N/A' }}

Employment Information

{{ str_replace('_', ' ', $staff->staff_type) }}

{{ $staff->position ?? 'N/A' }}

{{ $staff->rank ?? 'N/A' }}

{{ str_replace('_', ' ', $staff->employment_type) }}

{{ $staff->hire_date ? $staff->hire_date->format('M d, Y') : 'N/A' }}

{{ ucfirst($staff->status) }}

{{ $staff->office_location ?? 'N/A' }}

{{ $staff->office_phone ?? 'N/A' }}

@if($staff->qualifications->count() > 0)

Qualifications

@foreach($staff->qualifications as $qualification)

{{ $qualification->qualification_type }}

{{ $qualification->field_of_study }}

{{ $qualification->institution }} • {{ $qualification->year_obtained }}

@endforeach
@endif @if($staff->contracts->count() > 0)

Contracts

@foreach($staff->contracts as $contract) @endforeach
Start Date End Date Position Salary Status
{{ $contract->start_date ? $contract->start_date->format('M d, Y') : 'N/A' }} {{ $contract->end_date ? $contract->end_date->format('M d, Y') : 'N/A' }} {{ $contract->position ?? 'N/A' }} ${{ number_format($contract->salary, 2) }} {{ ucfirst($contract->status) }}
@endif @if($staff->bio || $staff->research_interests)
@if($staff->bio)

Biography

{{ $staff->bio }}

@endif @if($staff->research_interests)

Research Interests

{{ $staff->research_interests }}

@endif
@endif @endsection