@extends('Admin.layout') @section('content')
GA Details
Loan Details
g
₹
₹
@php $disbursementMode = $gaCustomer->disbursement_mode ?? ''; @endphp
@if(strtolower($gaCustomer->disbursement_mode ?? '') === 'bank transfer')
Bank Details
@endif @php $hasImage = collect($gaGoldItems ?? [])->contains(function ($item) { return !empty($item->image); }); @endphp
@if($hasImage) @endif @forelse($gaGoldItems as $index => $item) @php $purityLabel = '-'; foreach ($goldCarats as $carat) { if ($carat->id == $item->purity_id) { $purityLabel = number_format($carat->purity, 0) . 'K'; break; } } @endphp @if($hasImage) @endif @empty @endforelse
SNO ITEM GROSS (g) PURITY STONE / DED. (g) NET (g) AMOUNT REMARKSIMAGE
{{ $index + 1 }} @if(!empty($item->image)) @else - @endif
No gold items found.
@php $customerDocsList = collect([ ['label' => 'Live Photo', 'path' => $gaCustomer->live_photo ?? null], ['label' => 'Aadhaar Front', 'path' => $gaProofs['aadhaar'] ?? null], ['label' => 'Aadhaar Back', 'path' => $gaProofs['customer_sign'] ?? null], ['label' => 'PAN', 'path' => $gaProofs['pan'] ?? null], ['label' => 'Address Proof', 'path' => $gaProofs['address_proof'] ?? null], ['label' => 'Bank Passbook', 'path' => $gaProofs['bank_passbook'] ?? null], ])->filter(fn($doc) => !empty($doc['path'])); $goldAgreementList = collect([ ['label' => 'Gold Photos', 'path' => $gaProofs['gold_photos'] ?? null], ['label' => 'GA Agreement', 'path' => $gaProofs['ga_agreement'] ?? null], ['label' => 'GA Receipt', 'path' => $gaProofs['ga_receipt'] ?? null], ['label' => 'Disbursement Proof', 'path' => $gaProofs['disbursement_proof'] ?? null], ])->filter(fn($doc) => !empty($doc['path'])); @endphp
@forelse($customerDocsList as $doc)
{{ $doc['label'] }}
{{ $doc['label'] }}
@empty
No Customer Documents Available
@endforelse
@forelse($goldAgreementList as $doc)
{{ $doc['label'] }}
{{ $doc['label'] }}
@empty
No Gold & Agreement Documents Available
@endforelse
@endsection