@extends('layouts.app') @section('title', 'View Enquiry') @section('content')
Complete enquiry information and processing status
{{ basename($folio->file_path) }}
Download{{ basename($folio->file_path) }}
DownloadNo documents
| Requested Amount | {{ number_format($enquiry->loanApplication->requested_amount ?? 0, 0) }} TZS |
|---|---|
| Processed Amount | {{ number_format($enquiry->loanApplication->loan_amount ?? 0, 0) }} TZS |
| Loan Duration | {{ $enquiry->loanApplication->loan_duration ?? 'N/A' }} months |
| Interest Rate | {{ $enquiry->loanApplication->interest_rate ?? 'N/A' }}% |
| Monthly Deduction | {{ number_format($enquiry->loanApplication->monthly_deduction ?? 0, 0) }} TZS |
| Total Loan with Interest | {{ number_format($enquiry->loanApplication->total_loan_with_interest ?? 0, 0) }} TZS |
| Total Interest | {{ number_format($enquiry->loanApplication->total_interest ?? 0, 0) }} TZS |
| Processing Fee | {{ number_format($enquiry->loanApplication->processing_fee ?? 0, 0) }} TZS |
| Insurance | {{ number_format($enquiry->loanApplication->insurance ?? 0, 0) }} TZS |
| Disbursement Amount | {{ number_format($enquiry->loanApplication->disbursement_amount ?? 0, 0) }} TZS |
| Loan Purpose | {{ $enquiry->loanApplication->loan_type ?? 'N/A' }} |
General enquiry information is displayed in the sections above.
Enquiry submitted by {{ $enquiry->registeredBy->name ?? 'System' }}
Type: {{ ucfirst(str_replace('_', ' ', $enquiry->type)) }}Assigned to {{ $enquiry->users->first()->name }}
Role: {{ $enquiry->users->first()->getRoleNames()->first() }}Waiting for assignment to appropriate officer
@if($isOverdue) Overdue ({{ $enquiry->created_at->diffInWeekdays($now) }} days) @endifLoan application has been approved by manager
@elseEnquiry approved and ready for final processing
@endif @elseif($enquiry->status == 'rejected')Enquiry was rejected by the reviewing officer
@php $rejection = \App\Models\Rejection::where('enquiry_id', $enquiry->id)->latest()->first(); @endphp @if($rejection){{ $rejection->reason_text }}
@if($rejection->rejection_detail) Details: {{ $rejection->rejection_detail }} @endifReview process completed successfully
@elseEnquiry has been reviewed and completed
@endif @elseif($enquiry->status == 'processed') @if($isLoanType)Loan has been processed by loan officer, awaiting manager approval
@elseEnquiry has been fully processed
@endif @elseif($enquiry->status == 'assigned')Awaiting review by assigned officer
@else @if($isLoanType)Pending processing by loan officer
@elsePending review and decision
@endif @endifLoan application successfully approved and completed
All approval steps completed @elseif($isReviewType)Enquiry review completed successfully
All required actions have been taken @elseEnquiry processing completed
All required actions have been taken @endifAwaiting loan approval decision
@elseif($isReviewType)Awaiting review completion
@elseAwaiting final processing
@endif