@php use App\Services\FundLoanFilterService; use App\Services\FundLoanInstallmentReportService; use Carbon\Carbon; $installmentRows = $installmentRows ?? collect(); $scope = $scope ?? 'monthly'; $totalPrincipal = 0.0; $totalCharge = 0.0; $totalAmount = 0.0; $rowCollection = method_exists($installmentRows, 'getCollection') ? $installmentRows->getCollection() : collect($installmentRows); @endphp
| {{ __('Employee') }} | {{ __('Branch') }} | {{ __('Department') }} | {{ __('Loan') }} | {{ __('#') }} | {{ __('Due period') }} | {{ __('Principal') }} | {{ __('S/Charge') }} | {{ __('Total') }} | {{ __('Status') }} | {{ __('Paid on') }} | {{ __('Outstanding') }} |
|---|---|---|---|---|---|---|---|---|---|---|---|
| @include('admin.fund.partials.staff_cell', [ 'name' => $staff?->user?->name, 'code' => $staff?->user?->id, ]) | {{ $staff?->warehouse?->name ?? '—' }} | {{ $staff?->department?->name ?? '—' }} | {{ $inst->installment_no }} | {{ $dueLabel }} | {{ number_format($principal, 2) }} | {{ number_format($charge, 2) }} | {{ number_format($rowTotal, 2) }} | {{ FundLoanFilterService::installmentStatusLabel($status) }} | {{ $inst->paid_at?->format('Y-m-d') ?? '—' }} | {{ number_format((float) ($inst->loan?->outstanding ?? 0), 2) }} | |
| {{ ($hasFilters ?? false) ? __('No installments match your filters.') : __('No installment records found.') }} | |||||||||||
| {{ __('Page totals') }} | {{ number_format($totalPrincipal, 2) }} | {{ number_format($totalCharge, 2) }} | {{ number_format($totalAmount, 2) }} | ||||||||