@extends('staff.layout') @section('content')
GA Details (View Only)
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 / Sign', '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_photo ?? null], ['label' => 'GA Agreement / Entry Form', 'path' => $gaProofs->entry_form ?? null], ['label' => 'Bank Slip', 'path' => $gaProofs->bank_slip ?? null], ['label' => 'Additional Slip', 'path' => $gaProofs->additional_slip ?? 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