@section('page-title', __('Employees'))

{{ __('Employees') }}

{{ __('Add Employee') }}
{{ __('Clear') }}
{{ __('CSV') }} {{ __('Excel') }}
@forelse($employees as $e) @empty @endforelse
{{ __('Employee') }} {{ __('Contact') }} {{ __('Department') }} {{ __('Category') }} {{ __('Join Date') }} {{ __('Actions') }}
@if($e->profile_picture) {{ $e->first_name }} @else {{ strtoupper(substr($e->first_name, 0, 1) . substr($e->last_name, 0, 1)) }} @endif

{{ $e->first_name }} {{ $e->last_name }}

{{ $e->employee_id ?? 'N/A' }}

{{ $e->email ?? 'N/A' }}

{{ $e->phone ?? 'N/A' }}

{{ $e->department ? ucfirst($e->department) : 'N/A' }} @if($e->category == 'full_time') {{ __('Full Time') }} @elseif($e->category == 'part_time') {{ __('Part Time') }} @elseif($e->category == 'contract') {{ __('Contract') }} @else N/A @endif {{ $e->join_date ? \Carbon\Carbon::parse($e->join_date)->format('M d, Y') : 'N/A' }}

{{ __('No employees found') }}

{{ __('Add First Employee') }}
{{ __('Showing') }} {{ $employees->firstItem() ?? 0 }} {{ __('to') }} {{ $employees->lastItem() ?? 0 }} {{ __('of') }} {{ $employees->total() }} {{ __('employees') }}
{{ $employees->links() }}