Employee Management

Create, view, update and delete employees without reloading the page.

@if (session()->has('success')) @endif @if ($showForm)

{{ $employeeId ? 'Edit Employee' : 'Add Employee' }}

@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('department')
{{ $message }}
@enderror
@error('salary')
{{ $message }}
@enderror
@endif
Loading employees...
@forelse ($employees as $employee) @empty @endforelse
# Employee Contact Department Salary Status Actions
{{ $employees->firstItem() + $loop->index }}
{{ $employee->name }}
Created {{ $employee->created_at->format('d M Y') }}
{{ $employee->email }}
{{ $employee->phone ?: 'No phone' }}
{{ $employee->department }} ₹{{ number_format((float) $employee->salary, 2) }} @if ($employee->status) Active @else Inactive @endif
No employees found.
@if ($employees->hasPages())
{{ $employees->links() }}
@endif