@extends('layouts.app') @section('title', 'User Details') @section('content')
{{ $user->email }}
{{ $user->role->name ?? 'No Role' }}
{{ $user->company->name ?? 'No Company' }}
{{ $user->department->name ?? 'No Department' }}
{{ $user->employee_id_number ?? 'N/A' }}
{{ $user->phone ?? 'N/A' }}
{{ $user->job_title ?? 'N/A' }}
{{ ucfirst($user->employment_type) }}
{{ $user->date_of_hire ? $user->date_of_hire->format('M d, Y') : 'N/A' }}
{{ $user->date_of_birth ? $user->date_of_birth->format('M d, Y') : 'N/A' }}
{{ $user->nationality ?? 'N/A' }}
{{ $user->blood_group ?? 'N/A' }}
{{ $user->known_allergies ?? 'None' }}
{{ $user->directSupervisor->name ?? 'None' }}
{{ $user->hse_training_history ? 'Available' : 'None' }}
{{ $user->competency_certificates ? 'Available' : 'None' }}
{{ $user->last_login_at ? $user->last_login_at->format('M d, Y H:i') : 'Never' }}
{{ $user->last_login_ip ?? 'N/A' }}
{{ $user->failed_login_attempts }}
{{ $user->password_changed_at ? $user->password_changed_at->format('M d, Y') : 'Never' }}
{{ $user->must_change_password ? 'Yes' : 'No' }}
@if($user->deactivated_at) Deactivated on {{ $user->deactivated_at->format('M d, Y') }} @if($user->deactivation_reason) ({{ $user->deactivation_reason }}) @endif @else Active @endif
{{ $activity->description }}
{{ $activity->created_at->format('M d, Y H:i') }}
No recent activity found.
@endif