@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')

Manage Coupons

{{ $course->title }}

Course Coupons
@if($course->coupons && $course->coupons->count() > 0)
@foreach($course->coupons as $coupon) @endforeach
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
@csrf is_active ? 'checked' : '' }} data-coupon-id="{{ $coupon->id }}">
{{ $coupon->is_active ? 'Active' : 'Inactive' }}
@csrf @method('DELETE')
@else
No Coupons Yet

Create coupons to offer special discounts to your students.

@endif
About Coupons
What are coupons?

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.

Best Practices
  • Create limited-time coupons to create urgency
  • Use descriptive coupon codes like "SPRING30" for a 30% spring discount
  • Set usage limits for exclusive promotions
  • Share coupons on social media to drive enrollment
Discount Types
Percentage

Applies a percentage discount to the course price.

Fixed Amount

Applies a fixed dollar amount discount.

@if($course->coupons && $course->coupons->count() > 0)
Coupon Statistics
{{ $course->coupons->count() }}
Total Coupons
{{ $course->coupons->sum('usage_count') }}
Total Redemptions
{{ $course->coupons->where('is_active', true)->count() }}
Active Coupons
${{ number_format($course->coupons->sum('total_discount') ?? 0, 2) }}
Total Discounts
@endif
@push('styles') @endpush @push('scripts') @endpush @endsection