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

Team Members

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

Team Members

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)
âš ī¸ Warning: Only {{ $remainingSlots }} slots remaining!
@elseif($employeeCount < 5)
â„šī¸ Minimum Required: At least 5 employees needed. Current: {{ $employeeCount }}/5
@endif

Manage Team Members

@if($employeeCount < 30) Add New 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 Actions
{{ $loop->iteration }} {{ $employee->employee_no }} {{ $employee->full_name }} {{ $employee->email }} {{ $employee->phone ?? '-' }} {{ $employee->position ?? 'N/A' }} {{ $employee->department ?? 'N/A' }} {{ optional($employee->hired_at)->format('M d, Y') ?? '-' }} View Edit
@csrf @method('DELETE')
No employees found.
{{ $employees->links() }}
@endsection