@extends('backend.master') @push('styles') @endpush @section('content')
Repayment Schedule — Loan #{{ $loan->id }} ({{ $loan->user?->name ?? 'Guest' }})
Back
@if(session('ok'))
{{ session('ok') }}
@endif
@forelse($repayments as $rp) @empty @endforelse
# Due Date Amount Status Paid At Actions
#{{ $rp->id }} {{ $rp->due_date?->format('Y-m-d') }} {{ number_format($rp->amount,2) }} @php $badgeClass = $rp->status==='paid' ? 'bg-success' : 'bg-warning text-dark'; $icon = $rp->status==='paid' ? 'fa-circle-check' : 'fa-hourglass-half'; @endphp {{ ucfirst($rp->status) }} {{ $rp->paid_at ? $rp->paid_at->format('Y-m-d H:i') : '—' }} @if($rp->status==='due') @else @endif
No repayments found.
{{ $repayments->links() }}
{{-- Mark Paid Modal --}} @push('scripts') @endpush @endsection