@extends('backEnd.layouts.master') @section('title','Employee Management') @section('css') @endsection @section('content')
{{-- PAGE HEADER --}}

Employee Management

Manage all your employees, departments, and payroll info.

Add New Employee
{{-- FILTERS --}}
{{-- TABLE --}}
@forelse($employees as $employee) {{-- Name & Avatar --}} {{-- Role --}} {{-- Contact --}} {{-- Salary --}} {{-- Status --}} {{-- Actions --}} @empty @endforelse
Employee Details Role & Dept Contact Salary Status Actions
{{ substr($employee->name, 0, 1) }}
{{ $employee->designation ?? 'N/A' }} {{ $employee->department ?? 'General' }}
{{ $employee->phone ?? 'N/A' }} ৳{{ number_format($employee->basic_salary, 2) }}
Basic
@if($employee->status == 'active') Active @elseif($employee->status == 'inactive') Inactive @else Terminated @endif
@csrf @method('DELETE')

No Employees Found

Try adjusting your search or filters.
{{-- PAGINATION --}}
Showing {{ $employees->firstItem() }} to {{ $employees->lastItem() }} of {{ $employees->total() }} results
{{ $employees->links('pagination::bootstrap-4') }}
@endsection