{{ __('Back to list') }}
@forelse($rows as $index => $row) @php $paidCount = $row->installments->where('status', 'paid')->count(); $totalInst = $row->installments->count(); @endphp @empty @endforelse
# {{ __('Employee') }} {{ __('Branch') }} {{ __('Department') }} {{ __('Status') }} {{ __('Principal') }} {{ __('Period') }} {{ __('Installment') }} {{ __('Outstanding') }} {{ __('Progress') }} {{ __('Guarantors') }} {{ __('Requested') }} {{ __('Issued') }}
{{ $row->id }} {{ $row->account?->staff?->user?->name ?? '—' }}
{{ $row->account?->staff?->user?->id }}
{{ $row->account?->staff?->warehouse?->name ?? '—' }} {{ $row->account?->staff?->department?->name ?? '—' }} {{ $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') ?? '—' }}
{{ __('No records') }}