@extends('layouts.app') @section('title', 'تفاصيل السلفة #' . $loan->id) @section('content')
{{ $loan->employee->full_name_en ?: $loan->employee->first_name . ' ' . $loan->employee->last_name }} — {{ $loan->type_label }}
| رقم القسط | الشهر | تاريخ الاستحقاق | المبلغ | المدفوع | الحالة | @if($loan->status === 'active')إجراء | @endif
|---|---|---|---|---|---|---|
| {{ $inst->installment_number }} | {{ $inst->month }} | {{ $inst->due_date?->format('Y-m-d') ?? '-' }} | {{ number_format($inst->amount, 2) }} | {{ number_format($inst->paid_amount, 2) }} | @if($inst->status === 'paid') مدفوع @elseif($inst->status === 'partial') جزئي @elseif($inst->status === 'skipped') متخطى @else معلق @endif | @if($loan->status === 'active')@if($inst->status !== 'paid') @else {{ $inst->paid_date?->format('Y-m-d') }} @endif | @endif