@extends('admin.admin-layout') @section('content')
| Coupon Code | Type | Value | Start Date | End Date | Status | Action |
|---|---|---|---|---|---|---|
| {{ $coupon->code }} | {{ $coupon->type }} | @if($coupon->type == 'percent') {{ $coupon->value }}% @else ₹{{ $coupon->value }} @endif | {{ \Carbon\Carbon::parse($coupon->start_date)->format('d M Y') }} | {{ \Carbon\Carbon::parse($coupon->end_date)->format('d M Y') }} | @php $badgeClass = match($coupon->status) { 'active' => 'text-success bg-success-subtle', 'inactive' => 'text-danger bg-danger-subtle', 'future' => 'text-warning bg-warning-subtle', default => 'text-secondary bg-secondary-subtle', }; @endphp {{ $coupon->status }} | |
| No coupons found. | ||||||