@extends('backend.master') @push('styles') @endpush @section('content')
Loan Applications
@if(request()->hasAny(['status','q'])) Reset @endif
@if(session('ok'))
{{ session('ok') }}
@endif @if ($errors->any())
Validation error:
    @foreach ($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@forelse($loans as $l) @empty @endforelse
# User Amount Period Interest Estimated Total Image Status Created Actions
#{{ $l->id }} {{ $l->user?->name ?? 'Guest' }} {{ number_format($l->loan_amount) }} {{ $l->loan_period }} mo {{ number_format($l->interest_rate,2) }}% {{ number_format($l->estimated_total) }} @if($l->image_path) @else @endif @php $badgeClass = match($l->status) { 'approved' => 'bg-success', 'rejected' => 'bg-danger', default => 'bg-warning text-dark', }; $icon = match($l->status) { 'approved' => 'fa-circle-check', 'rejected' => 'fa-circle-xmark', default => 'fa-hourglass-half', }; @endphp {{ ucfirst($l->status) }} {{ $l->created_at?->format('Y-m-d H:i') }} Schedule @if($l->status==='pending') @else @endif
No applications found.
{{ $loans->links() }}
{{-- Approve/Reject Modal --}} @push('scripts') @endpush @endsection