@extends('layouts.app') @section('title', 'Staff Register') @section('styles') @endsection @section('content') {{-- Unified Full Time Staff tabset (Staff Register · Payroll Profile · Leave Management · Payroll Runs · Payments · Statutory Remittances). Active tab here is "register" — the Leave panel is reached via the internal panel-switcher below OR by the dedicated /hr/leave URL the top tab links to. --}} @include('hr.partials.ft-staff-tabs', ['active' => 'register']) {{-- ════════════════════════════════════════════════════════════ STAFF REGISTER — clean one-pager. Top tabs (above) handle navigation to Leave Management, Payroll Profile, etc. so we don't repeat that here. KPIs intentionally dropped: each one was either static or duplicated info available one click away. ════════════════════════════════════════════════════════════ --}} {{-- Header / Action bar --}}
View, search and edit full-time staff records.
| Employee # | Name | Designation | Department | Phone | Status | Actions |
|---|---|---|---|---|---|---|
| {{ $s->employee_number }} | {{ $s->full_name }} | {{ $s->designation ?? '—' }} | {{ $s->department->name ?? '—' }} | {{ $s->phone ?? '—' }} | @php $statusBadge = match($s->status) { 'active' => 'badge-success', 'on_leave' => 'badge-warning', 'suspended' => 'badge-warning', 'inactive' => 'badge-gray', 'terminated' => 'badge-danger', default => 'badge-gray', }; @endphp {{ ucfirst(str_replace('_', ' ', $s->status)) }} | View Edit |
|
No staff records yet. + Add the first staff member | ||||||
Please fix the following: