@extends('layouts.app') @section('content')
{{ strtoupper(substr($loanOffer->first_name, 0, 1)) }}{{ strtoupper(substr($loanOffer->last_name, 0, 1)) }}

{{ $loanOffer->first_name }} {{ $loanOffer->middle_name }} {{ $loanOffer->last_name }}

Check #{{ $loanOffer->check_number }} Application #{{ $loanOffer->application_number }} @if($loanOffer->bank_account_number) {{ $loanOffer->bank_account_number }} @endif

TZS {{ number_format($loanOffer->total_amount_to_pay, 2) }}

Loan Amount
@if($loanOffer->approval == 'APPROVED')
@elseif($loanOffer->approval == 'REJECTED')
@else
@endif
Approval Status

@if($loanOffer->approval == 'APPROVED') APPROVED @elseif($loanOffer->approval == 'REJECTED') REJECTED @else PENDING @endif

@if($loanOffer->status == 'disbursed')
@elseif($loanOffer->status == 'disbursement_pending')
@elseif($loanOffer->status == 'DISBURSEMENT_FAILED')
@else
@endif
Processing Status

@if($loanOffer->status == 'disbursed') DISBURSED @elseif($loanOffer->status == 'disbursement_pending') PROCESSING @elseif($loanOffer->status == 'DISBURSEMENT_FAILED') FAILED @elseif($loanOffer->status == 'FULL_SETTLED') SETTLED @else {{ strtoupper(str_replace('_', ' ', $loanOffer->status ?: 'NEW')) }} @endif

@if($loanOffer->nmb_batch_id) @endif
Timeline

Created: {{ $loanOffer->created_at->format('d M Y') }}

Updated {{ $loanOffer->updated_at->diffForHumans() }}
@if($loanOffer->approval === 'APPROVED' && !in_array($loanOffer->status, ['disbursement_pending', 'disbursed', 'FULL_SETTLED', 'DISBURSEMENT_FAILED']))
Ready for Disbursement

This loan has been approved and is ready to be sent to NMB Bank for processing.

Amount to Disburse: TZS {{ number_format($loanOffer->total_amount_to_pay, 2) }}

@endif
Loan Details
@csrf @method('PUT')
status, ['disbursement_pending', 'disbursed', 'FULL_SETTLED'])) disabled @endif>
Financial Information
Please enter a valid amount
Beneficiary Account Details
Please enter account number
Please select a payment destination
Status Management
For manual correction only
Notes & Remarks
@if(!in_array($loanOffer->status, ['disbursement_pending', 'disbursed', 'FULL_SETTLED']))
Last saved {{ $loanOffer->updated_at->diffForHumans() }}
@else
This loan is locked for editing due to its current status.
@endif

Application Created

{{ $loanOffer->created_at->format('d M Y, h:i A') }}

@if($loanOffer->approval)
{{ ucfirst(strtolower($loanOffer->approval)) }}

Status changed

@endif @if($loanOffer->status == 'disbursed')
Disbursed

Funds sent successfully

@endif
@endsection @push('styles') @endpush @push('scripts') @endpush