@extends('layouts.app') @section('title', 'External Employees Management') @section('content')
Manage external contract employees and vendors
Total External Employees
{{ $externalEmployeesPaginated->total() }}
Active Contracts
{{ $externalActiveCount ?? 0 }}
Inactive Contracts
{{ $externalInactiveCount ?? 0 }}
Expiring Soon
{{ $externalExpiringCount ?? 0 }}
| Employee Name | Status | Actions | |||||
|---|---|---|---|---|---|---|---|
|
{{ $employee->full_name ?? $employee->first_name . ' ' . $employee->last_name }}
{{ $employee->employee_code ?? '' }}
|
@php $statusClass = 'secondary'; $statusName = 'unknown'; if (is_object($employee->status)) { $statusName = $employee->status->name ?? 'unknown'; $statusClass = $employee->status->class ?? 'secondary'; } elseif (is_array($employee->status)) { $statusName = $employee->status['name'] ?? 'unknown'; $statusClass = $employee->status['class'] ?? 'secondary'; } @endphp {{ ucfirst($statusName) }} |
@if($employee->contract_end_date && \Carbon\Carbon::parse($employee->contract_end_date)->diffInDays(now()) <= 30)
@endif
|
|||||
|
No external employees found |
|||||||