YAPEIM GOLD
Yayasan Pembangunan Ekonomi Islam Malaysia
Statement of Account
Generated: {{ $generatedAt }}
Account Holder: {{ $accountName }}
IC / SSM No: {{ $accountId }}
Account Type: {{ $accountType }}
Statement Period: {{ $dateRangeLabel }}
Total Transactions: {{ count($transactions) }} Record(s)
Currency: MYR (Ringgit Malaysia)
Total Bought (Grams)
+{{ number_format($totalBoughtGrams, 2) }} g
Total Sold (Grams)
-{{ number_format($totalSoldGrams, 2) }} g
Total Withdrawn (Grams)
-{{ number_format($totalWithdrawnGrams, 2) }} g
@forelse($transactions as $tx) @php $isBuy = $tx->transaction_type === 'B'; $isSell = $tx->transaction_type === 'S'; $isWithdrawal = $tx->transaction_type === 'W'; $isSuccess = $tx->transaction_status === 'SUCCESS'; $isPending = $tx->transaction_status === 'PENDING'; $badgeClass = $isSuccess ? 'badge-success' : ($isPending ? 'badge-pending' : 'badge-cancel'); $typeName = $isBuy ? 'Buy Gold' : ($isSell ? 'Sell Gold' : ($isWithdrawal ? 'Withdrawal' : $tx->transaction_type)); $typeClass = $isBuy ? 'text-buy' : ($isSell ? 'text-sell' : 'text-withdraw'); $dateStr = \Carbon\Carbon::parse($tx->created_at)->format('d M Y, H:i'); $weight = floatval($tx->total_weight_gram ?? 0); $amount = floatval($tx->trx_amount ?? 0); @endphp @empty @endforelse
Date & Time Reference No Type Description Weight (g) Amount (RM) Status
{{ $dateStr }} {{ $tx->trx_ref }} {{ $typeName }} {{ $tx->trx_description ?: '-' }} {{ $isBuy ? '+' : '-' }}{{ number_format($weight, 2) }} g {{ $amount > 0 ? 'RM ' . number_format($amount, 2) : '-' }} {{ $tx->transaction_status }}
No transactions found for the specified date range.