| {{ $discount->name }} |
{{ $discount->code ?? '—' }} |
{{ $discount->type->value === 'percentage' ? number_format((float) $discount->value, 2).'%' : number_format((float) $discount->value, 2) }}
|
@if ($discount->starts_at || $discount->ends_at)
{{ optional($discount->starts_at)->format('Y-m-d') ?? __('Any time') }}
–
{{ optional($discount->ends_at)->format('Y-m-d') ?? __('Ongoing') }}
@else
{{ __('Always') }}
@endif
|
@if ($discount->isValidNow())
{{ __('Live') }}
@elseif ($discount->is_active)
{{ __('Scheduled/Expired') }}
@else
{{ __('Inactive') }}
@endif
|
@can('update', $discount)
{{ __('Edit') }}
@endcan
|
@empty