@extends('backend.master') @section('content') @php $u = $loan->user; $pi = $u?->personalInformation; $plan = $loan->loanPlan; $avatar = $pi?->selfie_path ? asset('storage/' . $pi->selfie_path) : null; $phone = trim(($u?->country_code ?? '') . ' ' . ($u?->phone ?? '')); $statusClass = match($loan->status) { 'submitted' => 'bg-yellow-50 text-yellow-700 border border-yellow-200', 'security_approved' => 'bg-green-50 text-green-700 border border-green-200', 'approved' => 'bg-blue-50 text-blue-700 border border-blue-200', 'rejected' => 'bg-red-50 text-red-700 border border-red-200', default => 'bg-gray-100 text-gray-700 border border-gray-200', }; $totalPayable = $loan->total_payable ?? ((float) $loan->monthly_installment * (int) $loan->term_months); $docs = [ 'ID Front' => $pi?->id_front_path, 'ID Back' => $pi?->id_back_path, 'Selfie' => $pi?->selfie_path, 'Signature' => $pi?->signature_path, ]; @endphp
View complete Erin loan and user information