@extends('layouts.app') @section('title', 'Payroll Profile | Full Time Staff') @section('content') @include('hr.partials.ft-staff-tabs', ['active' => 'payroll-profile'])

Payroll Profile

Active staff with compensation set-up. Click a row to edit salary, allowances, and payment details.

@if($search)Clear@endif
@forelse($staff as $s) @php $totalAllowances = (float) ($s->taxable_allowances ?? 0) + (float) ($s->non_taxable_allowances ?? 0); $hasSalary = (float) ($s->salary ?? 0) > 0; @endphp @empty @endforelse
Employee # Name Designation Department Basic Salary (KES) Allowances (KES) Payment Method Actions
{{ $s->employee_number }} {{ $s->full_name }} {{ $s->designation ?? '—' }} {{ $s->department->name ?? '—' }} @if($hasSalary){{ number_format($s->salary, 0) }}@else Not set @endif {{ $totalAllowances > 0 ? number_format($totalAllowances, 0) : '—' }} {{ $s->payment_method ? ucfirst(str_replace('_', ' ', $s->payment_method)) : '—' }} @if(Route::has('payroll.staff.profile')) {{ $hasSalary ? 'Edit Profile' : 'Set up Payroll' }} @else Payroll module unavailable @endif
@if($search) No active staff match "{{ $search }}". @else No active staff registered yet. @endif
@if($staff->hasPages())
{{ $staff->links() }}
@endif
@endsection