@extends('layouts.admin') @section('title', 'Coupons & Discounts Engine') @section('content')
Manage promotional discount codes, maximum discount caps, global usage limits, and expiration dates.
| Code | Discount Value | Min Order / Cap | Redemptions | Expiry Date | Status | Action |
|---|---|---|---|---|---|---|
| {{ $coupon->code }} |
@if($coupon->type === 'percent')
{{ (int)$coupon->value }}% OFF
@if($coupon->max_discount_amount)
Max Cap: ₹{{ number_format($coupon->max_discount_amount) }}
@endif
@else
₹{{ number_format($coupon->value) }} OFF
@endif
|
@if($coupon->min_order_amount > 0)
₹{{ number_format($coupon->min_order_amount) }}
@else
No Min Subtotal
@endif
|
{{ $coupon->usage_count }} / {{ $coupon->usage_limit ? $coupon->usage_limit : '∞' }}
@if($coupon->usage_limit)
@php
$percentUsed = min(100, round(($coupon->usage_count / $coupon->usage_limit) * 100));
@endphp
@endif
|
@if($coupon->expires_at) {{ $coupon->expires_at->format('M d, Y') }} @else No Expiry @endif | @if($isExpired) Expired @elseif($isLimitReached) Limit Reached @else @endif |