@include('staff._renewal_tab', ['type'=>'passport','label'=>'Passport','col'=>'passport_expiry'])
@include('staff._renewal_tab', ['type'=>'permit','label'=>'Permit','col'=>'permit_expiry'])
@include('staff._renewal_tab', ['type'=>'fomema','label'=>'FOMEMA','col'=>'fomema_expiry'])
{{-- SITES --}}
Current Site
{{ $staff->site?->name ?? 'Unassigned' }}
{{ $staff->site?->client }}
@if($canManage)
@endif
Assignment History
| Site | From | To | Remarks | By |
@forelse($staff->siteAssignments as $a)
| {{ $a->site?->name ?? '—' }} |
{{ optional($a->assigned_on)->format('d/m/Y') ?? '—' }} |
@if($a->ended_on){{ $a->ended_on->format('d/m/Y') }}@elseCurrent@endif |
{{ $a->remarks ?? '—' }} |
{{ $a->creator?->name ?? '—' }} |
@empty
| No site assignment history yet. |
@endforelse
{{-- DOCUMENTS --}}
@if($canManage)
@endif
| Title | Type | Expiry | Uploaded | |
@forelse($staff->documents as $doc)
| {{ $doc->title }} |
{{ ucfirst($doc->type) }} |
{{ optional($doc->expiry_date)->format('d/m/y') ?? '—' }} |
{{ $doc->created_at->format('d/m/y') }} |
@if($canManage)
@endif
|
@empty
| No documents uploaded. |
@endforelse
{{-- PAYSLIPS --}}
| Period | Nett Pay | Status | |
@forelse($staff->payslips as $p)
| {{ $p->periodLabel() }} |
RM {{ number_format($p->nett_pay, 2) }} |
{{ ucfirst($p->status) }} |
@if(auth()->user()->isAdmin() || auth()->user()->isFinance())@endif
@if($p->status==='finalized')@endif
|
@empty
| No payslips yet. |
@endforelse