@extends('layouts.app') @section('title', 'Staff Loans & Advances') @section('content')

Loans, advances & SACCO

Recover staff loans through payroll, track balances and record manual repayments.
@include('payroll._nav')

Loan register

{{ num($loans->total()) }} loans
@forelse($loans as $loan) @empty @endforelse
LoanStaffPrincipalBalance MonthlyProgressStartedStatusActions
{{ $loan->loan_no }}
{{ $loan->type }}
{{ $loan->staff?->full_name ?? 'Unknown' }}
{{ $loan->staff?->staff_no ?: '—' }}
{{ money($loan->principal) }} {{ money($loan->balance) }} {{ money($loan->installment) }} @if($loan->interest_rate > 0)
{{ num($loan->interest_rate, 2) }}% p.a.
@endif
{{ num($loan->progress, 1) }}% repaid
{{ $loan->start_date?->format('d M Y') }}
@if(in_array($loan->status, ['Active', 'Completed'], true) && $loan->balance > 0) @endif @if($loan->repayments_count === 0)
@csrf @method('DELETE')
@endif
@if($loans->hasPages())
{{ $loans->links() }}
@endif

Recent repayments

Payroll deductions and manual repayments.
@forelse($recent as $repayment) @empty @endforelse
DateLoanStaffMethodAmountPrincipalInterestBalance after
{{ $repayment->paid_on?->format('d M Y') }} {{ $repayment->loan?->loan_no }} {{ $repayment->loan?->staff?->full_name ?? '—' }} {{ $repayment->method }} {{ money($repayment->amount) }} {{ money($repayment->principal) }} {{ money($repayment->interest) }} {{ money($repayment->balance_after) }}
@csrf
Interest is charged monthly on the opening balance and added to the instalment.
@foreach($loans as $loan)
@csrf @method('PUT')
@if($loan->balance > 0)
@csrf
@endif @endforeach @endsection