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

{{ $title }}

@include('dashboard.user.layouts.components.breadcrumbs')
@include('dashboard.user.components.menu')
Amount
{{ currency($loan->user->currency) }}{{ formatAmount($loan->amount) }}
Status
{{ $loan->status->label() }}
Total Repayable
{{ currency($loan->user->currency) }}{{ formatAmount($loan->total_repayable) }}
Disbursed At
{{ $loan->disbursed_at ? $loan->disbursed_at->format('d M Y') : 'N/A' }}
Due At
{{ $loan->due_at ? $loan->due_at->format('d M Y') : 'N/A' }}
@if ($loan->loanRepayments) @foreach ($loan->loanRepayments as $loanRepayment)
Loan Repayment Status
Amount: {{ currency($loan->user->currency) }}{{ formatAmount($loanRepayment->amount) }}
Status: {!! $loanRepayment->status->badge() !!}
Repaid At: {{ $loanRepayment->repaid_at ? $loanRepayment->repaid_at->format('d M Y') : 'N/A' }}
@endforeach @endif
@if ($loan->status->value === 'active') Repay Full Amount ({{ currency($loan->user->currency) }}{{ formatAmount($loanRepayment->amount) }}) @endif
@endsection