@extends('layouts.admin') @section('header')

Employee Management

@endsection @section('content') @php $employeeCount = $employees->total(); $maxEmployees = 30; $remainingSlots = $maxEmployees - $employeeCount; $percentageFull = ($employeeCount / $maxEmployees) * 100; @endphp

Employee Management

SME System (5-30 employees)

{{ $employeeCount }}/{{ $maxEmployees }}

{{ $remainingSlots }} slots remaining

@if($employeeCount >= 30)
đŸšĢ Limit Reached! Maximum 30 employees. Delete an employee to add more.
@elseif($remainingSlots <= 5)
Only {{ $remainingSlots }} slots remaining!
@elseif($employeeCount < 5)
â„šī¸ Minimum Required: At least 5 employees needed. Current: {{ $employeeCount }}/5
@endif

All Active Employees

📋 Ex-Employees @if($employeeCount < 30) + Add Employee @else @endif
@if($search) Clear @endif
@if($search)

📋 Showing results for: "{{ $search }}"

@endif
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@forelse ($employees as $employee) @empty @endforelse
# Employee No Name Email Phone Position Department Hired At Salary Actions
{{ $loop->iteration }} {{ $employee->employee_no }} {{ $employee->full_name }} {{ $employee->email }} {{ $employee->phone ?? '-' }} {{ $employee->position ?? '-' }} {{ $employee->department ?? '-' }} {{ optional($employee->hired_at)->format('M d, Y') ?? '-' }} {{ $employee->salary ? 'RM ' . number_format($employee->salary, 2) : '-' }} View Edit Resign
No employees found.
{{ $employees->links() }}
@endsection