Promotion Codes
Overview
@php
$baseQuery = request()->except(['page', 'status']);
$status = request('status', 'all');
@endphp
| Code | Type | Discount | Usage | Valid Until | Revenue | Status | Applicable To | ||
|---|---|---|---|---|---|---|---|---|---|
|
{{ $promo->name ?? '' }}
|
{{ $promo->discount_type ?? '' }} | {{ $promo->discount_value ?? '' }} @if ($promo->discount_type === 'Percentage') % @else {{ getSetting('default_currency') === 'USD' ? '$' : getSetting('default_currency') ?? '' }} @endif | @php $percentage = ($promo->used_count / $promo->total_limit) * 100; @endphp
{{ $promo->used_count }}/{{ $promo->total_limit }}
|
{{ optional($promo->valid_to) ? \Carbon\Carbon::parse($promo->valid_to)->format('M d, Y') : '—' }} | @php $revenue = $promo->used_count * $promo->discount_value; @endphp{{ $revenue }} {{ getSetting('default_currency') === 'USD' ? '$' : getSetting('default_currency') ?? '' }} | @if ( ($promo->valid_to && \Carbon\Carbon::parse($promo->valid_to)->isPast()) || $promo->used_count >= $promo->total_limit) Expired @elseif ($promo->status) Active @else Inactive @endif | @if (($promo->applicability ?? '') == 'Specific Events') @php $events = $promo->events->pluck('title')->take(1)->toArray(); @endphp {{ implode(', ', $events) }} @if ($promo->events->count() > 1) ... @endif @else {{ $promo->applicability ?? '' }} @endif |
{{-- Action Trigger --}}
{{-- Dropdown Menu --}}
|
|
| No Promotion Codes found. | |||||||||