@extends('layouts.app') @section('title', 'Staff Loans & Advances') @section('content')
| Loan | Staff | Principal | Balance | Monthly | Progress | Started | Status | Actions |
|---|---|---|---|---|---|---|---|---|
|
{{ $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)
@endif
|
|
| Date | Loan | Staff | Method | Amount | Principal | Interest | Balance 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) }} |