@extends('store.layout.main') @section('page-header')
| Name | Value | Applies To | Period | Actions |
|---|---|---|---|---|
|
{{ $d->name }}
{{ $d->discount_type === 'percentage' ? 'Percentage' : 'Fixed' }}
@if($isActive && !$expired)
Active
@elseif($expired)
Expired
@else
Inactive
@endif
@if($d->new_customers_only)
New Customers
@endif
|
{{ $d->discount_type === 'percentage' ? $d->value . '%' : format_currency($d->value) . ' off' }} | @if($pNames->count() === 1) Product: {{ $pNames->first() }} @elseif($pNames->count() === 2) Products: {{ $pNames->implode(', ') }} @elseif($pNames->count() >= 3) Products: {{ count($targetPids) }} selected @elseif($cNames->count() === 1) Category: {{ $cNames->first() }} @elseif($cNames->count() === 2) Categories: {{ $cNames->implode(', ') }} @elseif($cNames->count() >= 3) Categories: {{ count($targetCids) }} selected @elseif($d->target_product_tag) Tag: {{ $d->target_product_tag }} @elseif($d->product) Product: {{ $d->product->name }} @elseif($d->category) Category: {{ $d->category->name }} @else All Products @endif |
@if($d->start_date)
From {{ $d->start_date->format('d M Y') }}
@endif
@if($d->end_date)
Expires {{ $d->end_date->format('d M Y') }}
@else
No expiry
@endif
Created: {{ $d->created_at->format('d M Y') }}@if($d->creator) by {{ $d->creator->name }}@endif
|
|
| No discounts yet. Click "Add Discount" to create one. | ||||