@if ($coupons->isEmpty())
No coupons yet. Create your first one to get started.
@else
| Code |
Event |
Discount |
Min Order |
Used |
Validity |
Status |
Actions |
@foreach ($coupons as $coupon)
{{ $coupon->code }} |
{{ $coupon->event->name ?? 'All events' }} |
{{ $coupon->type === 'percentage' ? number_format($coupon->value, 0) . '%' : number_format($coupon->value, 2) }}
|
{{ $coupon->min_order_amount ? number_format($coupon->min_order_amount, 2) : '—' }} |
{{ $coupon->used_count }}{{ $coupon->max_uses ? ' / ' . $coupon->max_uses : ' / ∞' }} |
@if ($coupon->starts_at || $coupon->expires_at)
{{ $coupon->starts_at?->format('M d, Y') ?? 'Now' }}
→
{{ $coupon->expires_at?->format('M d, Y') ?? 'No expiry' }}
@else
Always valid
@endif
|
{{ $coupon->is_active ? 'Active' : 'Inactive' }}
|
|
@endforeach
{{ $coupons->links() }}
@endif