@extends('layouts.inspinia') @section('title', 'Employee Register') @section('content_header', 'Employee Register') @section('breadcrumb') @endsection @section('content')
@forelse($employees as $emp) @empty @endforelse
EMP No. Name Department Designation Phone Email Type Hire Date Status
{{ $emp->employee_number }} {{ $emp->full_name }} {{ $emp->department->name ?? '—' }} {{ $emp->designation->title ?? '—' }} {{ $emp->phone ?? '—' }} {{ $emp->email ?? '—' }} {{ ucwords(str_replace('_', ' ', $emp->employment_type)) }} {{ $emp->hire_date ? $emp->hire_date->format('d M Y') : '—' }} @php $bc = match($emp->status) { 'active' => 'badge-success', 'on_probation' => 'badge-warning', 'suspended' => 'badge-danger', 'terminated' => 'badge-dark', default => 'badge-secondary', }; @endphp {{ ucwords(str_replace('_', ' ', $emp->status)) }}
No employees found.
@if($employees->hasPages()) @endif
@endsection