@extends('layouts/app') @section('content') @php $form_action = isset($all_loan) ? "lead.update" : "lead.create"; @endphp

Borrower Loans

Borrower Pending Loans Information

@switch($all_loan[0]->loan_status) @case(1) @php $loan_status = "Pending"; @endphp @break @case(2) @php $loan_status = "View"; @endphp @break @case(3) @php $loan_status = "Under_Discussion"; @endphp @break @case(4) @php $loan_status = "Pending_Kyc"; @endphp @break @case(5) @php $loan_status = "Qualified"; @endphp @break @case(6) @php $loan_status = "Rejected"; @endphp @break @default @php $loan_status = "Unknown"; @endphp @endswitch
@foreach ($running_loan as $pending)
Name: {{ ucwords($all_loan[0]->name ?? 'N/A') }}
Email: {{ $all_loan[0]->email ?? 'N/A' }}
Phone: {{ $all_loan[0]->mobile ?? 'N/A' }}
Zipcode: {{ $all_loan[0]->zip_code ?? 'N/A' }}
Address: {{ $all_loan[0]->address ?? 'N/A' }}
Loan Amount: {{ $all_loan[0]->loan_amount ?? 'N/A' }}
Borrower Status: {{ isset($loan_status) ? str_replace('_',' ', $loan_status) : 'N/A' }}
Reason For Loan: {{ $all_loan[0]->reason_of_loan ?? 'N/A' }}
Created By: {{ isset($get_user->name) ? ucwords($get_user->name) : 'N/A' }}
Name: {{ ucwords($all_loan[0]->name ?? 'N/A') }}
Email: {{ $all_loan[0]->email ?? 'N/A' }}
Phone: {{ $all_loan[0]->mobile ?? 'N/A' }}
Zipcode: {{ $all_loan[0]->zip_code ?? 'N/A' }}
Address: {{ $all_loan[0]->address ?? 'N/A' }}
Loan Amount: {{ $all_loan[0]->loan_amount ?? 'N/A' }}
Borrower Status: {{ isset($loan_status) ? str_replace('_',' ', $loan_status) : 'N/A' }}
Reason For Loan: {{ $all_loan[0]->reason_of_loan ?? 'N/A' }}
Created By: {{ isset($get_user->name) ? ucwords($get_user->name) : 'N/A' }}
@endforeach

Borrower Close Loans Information

@switch($all_loan[0]->loan_status) @case(1) @php $loan_status = "Pending"; @endphp @break @case(2) @php $loan_status = "View"; @endphp @break @case(3) @php $loan_status = "Under_Discussion"; @endphp @break @case(4) @php $loan_status = "Pending_Kyc"; @endphp @break @case(5) @php $loan_status = "Qualified"; @endphp @break @case(6) @php $loan_status = "Rejected"; @endphp @break @default @php $loan_status = "Unknown"; @endphp @endswitch
Name: {{ ucwords($all_loan[0]->name ?? 'N/A') }}
Email: {{ $all_loan[0]->email ?? 'N/A' }}
Phone: {{ $all_loan[0]->mobile ?? 'N/A' }}
Zipcode: {{ $all_loan[0]->zip_code ?? 'N/A' }}
Address: {{ $all_loan[0]->address ?? 'N/A' }}
Loan Amount: {{ $all_loan[0]->loan_amount ?? 'N/A' }}
Borrower Status: {{ isset($loan_status) ? str_replace('_',' ', $loan_status) : 'N/A' }}
Reason For Loan: {{ $all_loan[0]->reason_of_loan ?? 'N/A' }}
Created By: {{ isset($get_user->name) ? ucwords($get_user->name) : 'N/A' }}
@endsection