@if ($status !== '' || $staffId) Clear @endif
@if ($loans->isEmpty()) @else
@foreach ($loans as $loan) @endforeach
Loan Staff Principal Balance Monthly Progress Status
{{ $loan->loan_no }}
{{ $loan->kind_label }} · {{ $loan->issued_at?->format('d M Y') }}
{{ $loan->user?->name ?? '—' }}
{{ $loan->user?->employee_no }}
{{ money($loan->principal, false) }} {{ money($loan->balance, false) }} {{ money($loan->monthly_deduction, false) }}
{{ $loan->progress_percent }}%
@if ($loan->status === 'active')
@can('hrm.loans.manage')
@csrf @endcan @can('hrm.loans.approve')
@csrf
@endcan
@endif
{{ $loans->links() }}
@endif
@if ($repayments->isEmpty())

No repayments recorded yet.

@else
    @foreach ($repayments as $repayment)
  • {{ $repayment->loan?->user?->name ?? '—' }}
    {{ $repayment->loan?->loan_no }} · {{ $repayment->via === 'payroll' ? 'Payroll recovery' : 'Manual payment' }}
    {{ money($repayment->amount, false) }}
    {{ $repayment->paid_at?->format('d M Y') ?? 'Pending pay run' }}
  • @endforeach
@endif
@can('hrm.loans.manage')
@csrf
@else

Only HR and finance managers can issue loans or record recoveries. Contact HR if a deduction looks wrong.

@endcan