@extends('front_end.layouts.home') @php $showRightSidebar = false; @endphp @section('title', 'Manage Coupons - ' . $course->title) @section('left_sidebar') @include('front_end.pages.courses.instructor_left_sidebar') @endsection @section('content')
| Code | Discount | Usage / Limit | Expires | Status | Actions |
|---|---|---|---|---|---|
| {{ $coupon->code }} | @if($coupon->discount_type == 'percentage') {{ $coupon->discount_amount }}% OFF @else ${{ number_format($coupon->discount_amount, 2) }} OFF @endif | {{ $coupon->usage_count }} / {{ $coupon->usage_limit ?? '∞' }} @if($coupon->usage_limit && $coupon->usage_count >= $coupon->usage_limit) Limit reached @endif |
@if($coupon->expires_at)
@if($coupon->expires_at < now())
Expired ({{ $coupon->expires_at->format('M d, Y') }})
@else
{{ $coupon->expires_at->format('M d, Y') }}
{{ $coupon->expires_at->diffForHumans() }}
@endif
@else
Never expires
@endif
|
{{ $coupon->is_active ? 'Active' : 'Inactive' }}
|
|
Create coupons to offer special discounts to your students.
Coupons allow you to offer discounts on your course to attract more students. You can create different coupons with various discount amounts and expiration dates.
Applies a percentage discount to the course price.
Applies a fixed dollar amount discount.