@extends('layouts.app') @section('title', 'Team Directory') @section('content')

Team Directory

View and manage your team members

Back to Dashboard
{{-- Filters --}}
@if(request()->hasAny(['search', 'department_id'])) Clear @endif
{{-- Team Members List --}}
Team Members {{ $employees->total() }}
@if($employees->count() > 0)
@foreach($employees as $index => $employee) @endforeach
# Employee Department Position Shift Status Actions
{{ $employees->firstItem() + $index }}
{{ strtoupper(substr($employee->name, 0, 2)) }}
{{ $employee->name }}
{{ $employee->employee_number ?? '-' }}
{{ $employee->contract?->position?->department?->department_name ?? '-' }} {{ $employee->contract?->position?->position_name ?? '-' }} @if($employee->contract?->shift) {{ $employee->contract->shift->shift_name }}
{{ $employee->contract->shift->start_time }} - {{ $employee->contract->shift->end_time }} @else - @endif
{{ ucfirst($employee->status) }} View
{{-- Pagination --}} @if($employees->hasPages())
Showing {{ $employees->firstItem() }} to {{ $employees->lastItem() }} of {{ $employees->total() }} employees
{{ $employees->links() }}
@endif @else

No team members found

@endif
@endsection