@php $fmt = function ($num) { try { return number_format((float) $num, 0); } catch (\Throwable $e) { return '0'; } }; $rate = isset($redemptionRate) ? max(0, min(100, (float) $redemptionRate)) : 0; $symbol = $currencySymbol ?? '$'; @endphp

Voucher Analytics

Total Vouchers{{ (int) ($total ?? 0) }}
Active{{ (int) ($active ?? 0) }}
Redeemed{{ (int) ($redeemed ?? 0) }}
Redemption Rate{{ number_format($rate, 1) }}%

Value Distribution

Total Value Issued{{ $symbol }}{{ $fmt($totalIssuedValue ?? 0) }}
Redeemed Value{{ $symbol }}{{ $fmt($redeemedValue ?? 0) }}
Remaining Value{{ $symbol }}{{ $fmt($remainingValue ?? 0) }}

Recent Redemptions