@extends('admin.layouts.app') @section('title', 'Gold Items') @section('content')
{{-- Success Message --}} @if(session('success')) @endif {{-- Error Message --}} @if(session('error')) @endif
{{-- Header --}}
Gold Items

Manage valuation details for gold items.

{{-- Search Filter --}}
Add Gold Item
{{-- FIX: Ensure $items is passed from controller --}} @forelse ($items as $item) {{-- Customer --}} {{-- Description --}} {{-- Weights --}} {{-- Valuation --}} {{-- Created At --}} {{-- Actions --}} @empty @endforelse
# ledger_folio_no Item Description Weight Details (gm) Valuation Created At Action
{{-- FIX: Changed $golditems to $items --}} {{ $loop->iteration + ($items->currentPage() - 1) * $items->perPage() }}
{{ $item->ledger_folio_no ?? 'N/A' }}
{{ $item->description }} Qty: {{ $item->quantity }} | Purity: {{ $item->purity }}K
Gross {{ $item->gross_weight }}
Stone {{ $item->stone_weight }}
Net {{ $item->net_weight }}
₹{{ number_format($item->market_value, 2) }} Rate: ₹{{ number_format($item->rate_per_gram, 2) }}/gm
{{ $item->created_at->format('d M, Y') }}
@csrf @method('DELETE')

No gold items found.

{{-- Pagination --}} {{-- FIX: Changed $golditems to $items --}} @if($items->hasPages()) @endif
{{-- Styles for Soft Buttons --}} @push('styles') @endpush @push('scripts') {{-- SweetAlert2 CDN --}} @endpush @endsection