@extends('layouts.app') @section('title', 'Employees') @section('content')
Total Employees
{{ number_format($stats['total']) }}
Active
{{ number_format($stats['active']) }}
With System Access
{{ number_format($stats['with_user_access']) }}
Without Access
{{ number_format($stats['without_user_access']) }}
| Employee | Employee ID | Job Title | Department | System Access | Employment Type | Status | Actions |
|---|---|---|---|---|---|---|---|
|
{{ $employee->full_name }}
{{ $employee->email ?? 'No email' }}
|
{{ $employee->employee_id_number }}
|
{{ $employee->job_title ?? 'N/A' }}
|
{{ $employee->department->name ?? 'N/A' }}
|
@if($employee->hasUserAccess()) {{ $employee->user->role->display_name ?? $employee->user->role->name ?? 'User' }} @else No Access @endif | {{ ucfirst(str_replace('_', ' ', $employee->employment_type ?? 'N/A')) }} | @if($employee->is_active && $employee->employment_status === 'active') Active @elseif($employee->employment_status === 'on_leave') On Leave @elseif($employee->employment_status === 'suspended') Suspended @else {{ ucfirst($employee->employment_status ?? 'Inactive') }} @endif | |
|
No employees found. Add your first employee |
|||||||