@extends('Admin.layout') @section('content') {{-- ── Page Header ── --}}
GA Details (View Only)
{{-- ── Main Card ── --}}
{{-- Card Heading --}}
Loan Details
{{-- ========================================================= CUSTOMER & LOAN DETAILS ========================================================== --}}
{{-- Customer Name --}}
{{-- Mobile --}}
{{-- Net Weight --}}
g
{{-- Rate / g --}}
₹
{{-- Eligible Loan Amount --}}
₹
{{-- Interest Policy --}}
{{-- Disbursement Mode --}}
@php $disbursementMode = $gaCustomer->disbursement_mode ?? ''; @endphp
{{-- Disbursement Date --}}
{{-- ========================================================= FULL BANK DETAILS (Shown ONLY if Disbursement Mode == 'Bank Transfer') ========================================================== --}} @if(strtolower($gaCustomer->disbursement_mode ?? '') === 'bank transfer')
Bank Details
{{-- Bank Name --}}
{{-- Branch Name --}}
{{-- Other Bank Name --}}
{{-- Account Number --}}
{{-- IFSC Code --}}
@endif {{-- ========================================================= GOLD ITEMS TABLE ========================================================== --}} @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.
{{-- ========================================================= DOCUMENTS & AGREEMENTS (Tab Switcher) ========================================================== --}} @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
{{-- Navigation Buttons --}}
{{-- TAB 1: Customer Docs --}}
@forelse($customerDocsList as $doc)
{{ $doc['label'] }}
{{ $doc['label'] }}
@empty
No Customer Documents Available
@endforelse
{{-- TAB 2: Gold & Agreement --}}
@forelse($goldAgreementList as $doc)
{{ $doc['label'] }}
{{ $doc['label'] }}
@empty
No Gold & Agreement Documents Available
@endforelse
{{-- Script for Tab Switching --}} @endsection