@extends('layouts.admin') @section('title', 'Coupons') @section('breadcrumb') @endsection @section('content')

Coupons List

@forelse($coupons as $coupon) @empty @endforelse
Code Type Value Usage (Used/Limit) Expiry Date Status Actions
{{ $coupon->code }} {{ ucfirst($coupon->type) }} @if($coupon->type == 'fixed') ${{ number_format($coupon->value, 2) }} @else {{ $coupon->value }}% @endif {{ $coupon->used_count }} / {{ $coupon->usage_limit ?? '∞' }} @if($coupon->expiry_date) {{ $coupon->expiry_date->format('Y-m-d') }} @if($coupon->expiry_date->isPast()) Expired @endif @else No Expiry @endif {{ $coupon->is_active ? 'Active' : 'Inactive' }} Edit
@csrf @method('DELETE')
No coupons found.
@endsection