Kelola kode diskon untuk customer.
Total Voucher
{{ $stats['total'] }}
Voucher Aktif
{{ $stats['active'] }}
Voucher Kadaluarsa
{{ $stats['expired'] }}
Voucher Terpakai
{{ $stats['used'] }}
| Tipe | Nilai Diskon | Min. Belanja | Kuota | Terpakai | Status | Aksi | ||
|---|---|---|---|---|---|---|---|---|
| {{ $v->code }} | {{ $v->type === 'percent' ? 'Persentase' : 'Nominal Tetap' }} |
{{ $v->type === 'percent' ? $v->value . '%' : 'Rp ' . number_format($v->value, 0, ',', '.') }}
@if ($v->type === 'percent' && $v->max_discount)
maks Rp {{ number_format($v->max_discount, 0, ',', '.') }} @endif |
{{ $v->min_order > 0 ? 'Rp ' . number_format($v->min_order, 0, ',', '.') : '—' }} |
@if ($v->valid_from || $v->valid_until)
{{ $v->valid_from?->format('d M Y') ?? '∞' }} – {{ $v->valid_until?->format('d M Y') ?? '∞' }} @if ($isExpired) Kadaluarsa @endif @else Tidak ada batas @endif |
{{ $v->quota ?? '∞' }} | {{ $v->used_count }} | @if ($isExpired || $isUsedUp) {{ $isExpired ? 'Kadaluarsa' : 'Habis' }} @else @endif |
@can('voucher.edit')
@endcan
@can('voucher.delete')
@endcan
|
|
Belum ada voucher. |
||||||||
Tindakan ini tidak dapat dibatalkan.