@extends('admin.layouts.app') @section('title', 'Coupon Details') @section('content')
| Coupon Code: | {{ $coupon->code }} |
| Status: | {{ ucfirst($coupon->status) }} |
| Discount Type: | {{ ucfirst($coupon->discount_type) }} |
| Discount Value: | {{ $coupon->discount_type === 'percentage' ? $coupon->discount_value . '%' : '₹' . $coupon->discount_value }} |
| Start Date: | {{ $coupon->start_date->format('M d, Y') }} |
| End Date: | {{ $coupon->end_date->format('M d, Y') }} |
| Usage Limit: | {{ $coupon->usage_limit ? $coupon->usage_limit : 'Unlimited' }} |
| Per User Limit: | {{ $coupon->per_user_limit ? $coupon->per_user_limit : 'Unlimited' }} |
| Total Usage: | {{ $coupon->usages->count() }} |
| Created: | {{ $coupon->created_at->format('M d, Y H:i') }} |
| Updated: | {{ $coupon->updated_at->format('M d, Y H:i') }} |
{{ $coupon->description }}
{{ Str::limit($package->description, 100) }}
This coupon applies to all packages.
@endif{{ $user->email }}
This coupon is available to all users.
@endifTotal Usage
Unique Users
| User | Order | Used At |
|---|---|---|
{{ $usage->user->name }}{{ $usage->user->email }} |
@if($usage->order) #{{ $usage->order->order_number }} @else N/A @endif | {{ $usage->used_at->format('M d, Y H:i') }} |