@extends(session('staff_logged_in') ? 'Staff.layout' : 'Admin.layout') @section('content')
| S.No | Employee ID | Name | Department | Role | Designation | Phone | Joining Date | Status | Action |
|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $emp->employee_id }} |
@if($emp->profile_photo)
|
{{ $emp->department ?? '-' }} | @if($emp->role) {{ $emp->role }} @else - @endif | {{ $emp->designation ?? '-' }} | {{ $emp->phone }} | {{ $emp->joining_date ?? '-' }} | @php $cls = match($emp->status) { 'Active' => 'bg-label-success', 'Inactive' => 'bg-label-danger', default => 'bg-label-warning' }; @endphp {{ $emp->status }} |
|
| No staff found | |||||||||