{{ $pageTitle }}
{{ $pagesubTitle }}
{{ session('error') }}
@endif
@php
$isWalkIn = $withdrawal->fulfillment_type === 'WALK_IN';
$wStatus = $withdrawal->status ?? 'PENDING';
$statusBadges = [
'COMPLETED' => 'is-success',
'DELIVERED' => 'is-success',
'PROCESSING' => 'is-pending',
'SHIPPED' => 'is-pending',
'READY_FOR_PICKUP' => 'is-pending',
'PENDING' => 'is-pending',
'REJECTED' => 'is-fail',
'CANCELLED' => 'is-fail',
];
$statusClass = $statusBadges[$wStatus] ?? 'is-pending';
$statusLabel = ucwords(strtolower(str_replace('_', ' ', $wStatus)));
$statusIcon = match ($statusClass) {
'is-success' => 'fa-solid fa-circle-check',
'is-fail' => 'fa-solid fa-circle-xmark',
default => 'fa-solid fa-clock',
};
$feeStatus = $withdrawal->fee_payment_status ?? 'PENDING';
$feeStatusBadges = [
'SUCCESS' => 'is-success',
'PAID' => 'is-success',
'WAIVED' => 'is-success',
'FAILED' => 'is-fail',
];
$feeStatusClass = $feeStatusBadges[$feeStatus] ?? 'is-pending';
$invImage = $withdrawal->inventory?->file?->file_url
?? $withdrawal->inventory?->file?->file_path
?? null;
@endphp
Withdrawal Receipt
YAPEIM GOLD
Withdrawal
{{ $statusLabel }}
Ref: {{ $withdrawal->trx_ref }}
{{ $isWalkIn ? 'Pickup Location' : 'Delivery Address' }}
Gold Item Details
Gold {{ $withdrawal->gold_type }}
{{ $withdrawal->type ?: 'Gold Item' }}
{{ $withdrawal->inv_id }}
Weight
{{ number_format($withdrawal->weight_gram, 2) }} g
Minting Fee
RM {{ number_format($withdrawal->minting_fee_total, 2) }}
(RM {{ number_format($withdrawal->minting_fee_per_gram, 2) }}/g)
@if (!$isWalkIn)
Postage (Courier Base)
RM {{ number_format($withdrawal->postage_base_fee, 2) }}
@if ($withdrawal->is_takaful && $withdrawal->takaful_fee_total > 0)
Takaful Protection
RM {{ number_format($withdrawal->takaful_fee_total, 2) }}
(RM {{ number_format($withdrawal->takaful_fee_per_gram, 2) }}/g)
@endif
@endif
Total Fee Paid
RM {{ number_format($withdrawal->fee_total, 2) }}
This is a system-generated receipt and is valid without a signature or stamp. Printed on {{ now()->format('d M Y, h:i A') }}.