@extends('dashboard.user.layouts.app') @section('content')

{{ $title }}

@slot('header') {{ $title }} @endslot {{-- ── DESKTOP TABLE (lg and above) ── --}}
@foreach ($loans as $loan) @endforeach
# Amount Duration Applied At Status Action
{{ $loop->iteration }} {{ currency($user->currency) }}{{ formatAmount($loan->amount) }} {{ $loan->duration }} months {{ formatDate($loan->created_at) }} {{ $loan->status->label() }} View
{{-- ── MOBILE / TABLET CARDS (below lg) ── --}}
@foreach ($loans as $loan)
{{-- Top row: index + status --}}
#{{ $loop->iteration }} {{ $loan->status->label() }}
{{-- Amount --}}

Amount

{{ currency($user->currency) }}{{ formatAmount($loan->amount) }}
{{-- Ref + Method --}}

Duration

{{ $loan->duration }} months

Applied At

{{ formatDate($loan->created_at) }}
{{-- Action --}} View Loan
@endforeach
@endsection