@php $periodLabel = $settlement->period_start->format('d M Y').' – '.$settlement->period_end->copy()->subDay()->format('d M Y'); @endphp
@if ($actionError) {{ $actionError }} @endif
{{ $settlement->staffUser->display_name }} {{ $periodLabel }} {{ $settlement->total_amount }}
@if ($settlement->isPaid()) Reference {{ $settlement->payment_reference }}@if ($settlement->paidByStaff) by {{ $settlement->paidByStaff->display_name }}@endif @if ($settlement->paid_at) on {{ $settlement->paid_at->format('d M Y, H:i') }}@endif. @endif
Action Occurred Amount @forelse ($items as $item) {{ $item->event->action_type }} {{ $item->event->occurred_at->format('d M, H:i') }} {{ $item->amount }} @empty @endforelse
@if (! $settlement->isPaid() && auth('staff')->user()->hasPermission('salary.approve'))
Mark as paid
@elseif (! $settlement->isPaid())

This settlement is pending. Someone with salary approval access records the payment.

@else

This settlement is paid and can't be changed. Every step is recorded in the audit log.

@endif