@extends('admin.layouts.app') @section('title', get_setting('site_name').' | PF Loans') @section('content')
| {{ __('Employee') }} | {{ __('Status') }} | {{ __('Principal') }} | {{ __('Period') }} | {{ __('Installment') }} | {{ __('Outstanding') }} | {{ __('Progress') }} | {{ __('Guarantors') }} | {{ __('Requested') }} | {{ __('Issued') }} | {{ __('Action') }} |
|---|---|---|---|---|---|---|---|---|---|---|
|
{{ $row->account?->staff?->user?->name }}
{{ $row->account?->staff?->user?->id }}
|
{{ $row->status }} | {{ number_format((float)$row->principal, 2) }} | {{ $row->loan_period_months ? $row->loan_period_months.' '.__('mo') : '—' }} | {{ $row->monthly_installment ? number_format((float)$row->monthly_installment, 2) : '—' }} | {{ number_format((float)$row->outstanding, 2) }} | @if($totalInst > 0) {{ $paidCount }}/{{ $totalInst }} @else — @endif |
@forelse($row->guarantors ?? [] as $g)
@if($g->user)
{{ $g->user->name }}({{ $g->user->id }})
@endif
@empty
—
@endforelse
|
{{ $row->requested_at?->format('Y-m-d') }} | {{ $row->issued_at?->format('Y-m-d') }} | {{ __('Print form') }} @if($row->status === 'pending') @elseif(in_array($row->status, ['active','approved'], true) && (float) $row->outstanding > 0) @else {{ __('No actions') }} @endif |
| {{ __('No records') }} | ||||||||||