@extends('layouts.app') @section('title', $locum->full_name . ' | ' . (($locum->worker_type ?? 'locum') === 'volunteer' ? 'Volunteer Profile' : 'Locum Profile')) @section('content') @php $isVolunteer = ($locum->worker_type ?? 'locum') === 'volunteer'; @endphp @include('locum.partials.payroll-tabs', ['active' => $isVolunteer ? 'volunteers' : 'register']) {{-- Profile Header --}}
@if($locum->staff_number){{ $locum->staff_number }} ยท @endif {{ $locum->role_designation ?? '' }} ยท {{ $locum->department->name ?? '' }}
Move {{ $locum->first_name }} from {{ $isVolunteer ? 'volunteer' : 'locum' }} to a permanent staff record. Personal details, statutory numbers, and license info carry over โ you only need to confirm employment terms.
Total Shifts
{{ $shiftStats['total'] }}
This Month
{{ $shiftStats['this_month'] }}
Pending Approval
{{ $shiftStats['pending_approval'] }}
Total Earned
KES {{ number_format($shiftStats['total_earned']) }}
Volunteer โ no payment is recorded for shifts. Schedule them on the duty roster like any other staff.
| Date | Shift | Dept | Rate | Gross Pay | Status |
|---|---|---|---|---|---|
| {{ $s->work_date->format('d M Y') }} | {{ $s->shift_type }} | {{ $s->department->name ?? '-' }} | @if($s->rate_type==='percentage'){{ $s->rate_applied }}%@else KES {{ number_format($s->rate_applied) }}@endif | KES {{ number_format($s->gross_amount) }} | {{ ucfirst($s->approval_status) }} |
| No shifts recorded yet. | |||||