@extends('layouts.app') @section('title', 'Edit Staff — ' . $staff->full_name) @section('content')

Edit Staff Record

{{ $staff->employee_number }} · {{ $staff->department->name ?? 'No department' }}

Cancel
@if($errors->any())

Please fix the following:

@endif
@csrf @method('PUT') {{-- ─── Personal Details ─── --}}

1. Personal Details

Auto-generated, cannot be changed

{{-- ─── Employment Details ─── --}}

2. Employment

{{-- Professional License: optional, but expiry becomes required once a number is entered. JS at the bottom of this view hides the expiry input until a number is typed. --}} @php $lnEdit = old('license_no', $staff->license_no); @endphp

Only if contract is ending or has ended

{{-- ─── Compensation ─── --}}

3. Compensation

@if(Route::has('payroll.staff.profile')) Open in Payroll Profile → @endif

These figures feed into payroll generation. @if(Route::has('payroll.staff.profile')) The Payroll Profile page is the canonical place for tax / SHA / NSSF detail. Edits here flow through to the next payroll run. @else Edits here flow through to the next payroll run. @endif

House, transport, etc.

Per diem, etc.

{{-- ─── Statutory Numbers ─── --}}

4. Statutory Numbers

{{-- ─── Payment Method ─── --}}

5. Payment Method

{{-- ─── Emergency Contact ─── --}}

6. Emergency Contact

{{-- ─── Notes ─── --}}

7. Notes

{{-- ─── Submit ─── --}}
Cancel
@endsection @section('scripts') @endsection