@extends('staff.layout') @section('content')

Closed GT Cases

Closed GT Cases
@forelse($closedGTs as $index => $gt) @php $customerName = $gt->customer_name ?? $gt->bank_name ?? '-'; $amount = (float) ($gt->total_principal ?: $gt->amount ?? 0); @endphp @empty {{-- DataTables empty state will handle if table is initialized empty --}} @endforelse
# CREATED DATE NAME GT ID NET WEIGHT AMOUNT PER GRAM CLOSED DATE ACTION
{{ $index + 1 }} {{ $gt->created_at ? $gt->created_at->format('Y-m-d') : '-' }} {{ $customerName }} GT#{{ $gt->id }} {{ number_format((float) ($gt->net_gram ?? 0), 3) }} g ₹ {{ number_format($amount, 2) }} ₹ {{ number_format((float) ($gt->per_gram ?? 0), 2) }} {{ $gt->updated_at ? $gt->updated_at->format('Y-m-d') : '-' }} View Details
@endsection