@extends('layouts.app') @section('content')
Imported loans for top-up tracking
|
SN
|
Check Number
|
Full Name
|
Loan Number
|
Original Amount
|
Outstanding Balance
|
Status
|
Actions
|
|---|---|---|---|---|---|---|---|
|
{{ $loans->firstItem() + $index }}
|
{{ $loan->check_number }} | {{ $loan->full_name ?? ($loan->payroll->full_name ?? 'N/A') }} | {{ $loan->loan_number ?? 'N/A' }} | TSh {{ number_format($loan->requested_amount ?? 0, 2) }} | TSh {{ number_format($loan->outstanding_balance ?? 0, 2) }} | @php $status = strtolower($loan->display_status ?? 'NOT AVAILABLE'); @endphp @if($status == 'approved') Approved @elseif($status == 'pending') Pending @elseif($status == 'disbursed') Disbursed @elseif($status == 'rejected' || $status == 'cancelled') {{ ucfirst($status) }} @elseif($status == 'not available') NOT AVAILABLE @else {{ strtoupper($loan->display_status ?? 'NOT AVAILABLE') }} @endif |
|
No loan records have been imported yet.