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

Employee Management

Manage employees and their information

All Employees

Showing all employees (Super User)

@if(session('success')) @endif @if(session('error')) @endif
@forelse($employees as $employee) @empty @endforelse
ID Employee ID Name Position Department Branch Salary Status Created Actions
{{ $employee->id }}
{{ $employee->employee_id }}
{{ $employee->name }}
{{ $employee->position }} @if($employee->department_id && $employee->department) {{ $employee->department->name }} @else - @endif @if($employee->branch) {{ $employee->branch->name }} @else - @endif BDT{{ number_format($employee->salary, 2) }} @if($employee->user_id && $employee->user)
Migrated User: {{ $employee->user->name ?? 'Unknown User' }}
ID: {{ $employee->user->id ?? 'N/A' }} | Role: {{ ucfirst($employee->user->role ?? 'user') }}
@elseif($employee->user_id) Migrated (No User Found) @elseif($employee->status) Active @else Inactive @endif
{{ $employee->created_at->format('M d, Y') }}
@if($employee->user_id) @else @endif
@csrf @method('DELETE')

No Employees Found

Get started by adding your first employee.

Add First Employee
@if($employees->hasPages())
{{ $employees->links() }}
@endif
@section('styles') @endsection @endsection