@php($rules = \App\Http\Requests\Admin\CouponRequest::class) CodeDiscountMinimum orderUsedExpiresStatusActions @foreach ($coupons as $coupon) {{ $coupon->code }} {{ $coupon->type === 'percent' ? rtrim(rtrim($coupon->value, '0'), '.').'%' : '৳ '.number_format($coupon->value, 2) }} ৳ {{ number_format($coupon->min_order_amount, 2) }} {{ $coupon->used_count }}{{ $coupon->usage_limit !== null ? ' / '.$coupon->usage_limit : '' }} {{ $coupon->expires_at?->format('d M Y') ?? 'Never' }} @if ($coupon->expires_at?->isPast())Expired@endif
@csrf @method('DELETE')
@endforeach
Shoppers type this in the cart. Capital and small letters count as the same.
A percent coupon can take at most 100.
How many orders in total may use it. Leave empty for no limit.
The code works until the end of this day. Leave empty for no end.