@extends('layouts.app') @section('content')
No personal details on file for this customer.
@endifNo bank account linked to this customer yet.
@endifNo gold wallet found for this customer.
@endif| Trx Ref | Type | Amount (RM) | Weight (g) | Payment Method | Status | Date |
|---|---|---|---|---|---|---|
|
{{ $trx->trx_ref }}
|
{{ $trx->transaction_type ?: '-' }}
|
{{ number_format((float) $trx->trx_amount, 2) }}
|
{{ number_format((float) $trx->total_weight_gram, 4) }}
|
{{ $trx->payment_method ?: '-' }}
|
@php
$trxStatusKey = strtolower($trx->transaction_status ?? '');
$trxStatusVariant = in_array($trxStatusKey, [
'success',
'completed',
'approved',
])
? 'success'
: (in_array($trxStatusKey, [
'failed',
'rejected',
'cancelled',
])
? 'danger'
: (in_array($trxStatusKey, [
'pending',
'processing',
])
? 'warning'
: 'neutral'));
@endphp
{{ $trx->transaction_status ?? '-' }}
|
{{ $trx->created_at ? \Carbon\Carbon::parse($trx->created_at)->format('d M Y, h:i A') : '-' }}
|
| No transactions found for this customer. | ||||||
| Trx Ref / Inv ID | Item Withdrawn | Gold Purity | Weight | Fulfillment / Branch | Fees (MYR) | Status | Request Date |
|---|---|---|---|---|---|---|---|
|
{{ $w->trx_ref }}
@if ($w->inv_id)
Inv: {{ $w->inv_id }}
@endif
|
{{ $w->type ?: ($w->inventory->type ?? 'Gold Item') }}
|
{{ $w->gold_type ?: ($w->inventory->gold_type ?? '999.9') }}
|
{{ number_format((float) ($w->weight_gram ?: ($w->inventory->weight ?? 0)), 4) }} g
|
@if ($w->branch)
{{ $w->branch->name }}
@elseif ($w->fulfillment_type == 'POSTAGE')
Postage Delivery
@else
{{ $w->fulfillment_type ?: 'Walk-in Collection' }}
@endif
|
MYR {{ number_format((float) ($w->fee_total ?? $w->minting_fee_total ?? 0), 2) }}
@if ($w->minting_fee_total > 0)
Minting: {{ number_format((float) $w->minting_fee_total, 2) }}
@endif
|
@php
$wStatus = strtoupper($w->status ?? '');
@endphp
@if (in_array($wStatus, ['APPROVED', 'COMPLETED', 'PICKED_UP', 'PICKED UP', 'SUCCESS']))
{{ $w->status }}
@elseif (in_array($wStatus, ['PENDING', 'IN_TRANSIT', 'RECEIVED']))
{{ $w->status }}
@elseif (in_array($wStatus, ['CANCEL', 'CANCELLED', 'FAIL', 'FAILED', 'REJECTED']))
{{ $w->status }}
@else
{{ $w->status ?: 'PENDING' }}
@endif
|
{{ $w->created_at ? \Carbon\Carbon::parse($w->created_at)->format('d M Y, h:i A') : '-' }}
|
| No gold withdrawal requests recorded for this customer. | |||||||