{{ __('Actions') }} @forelse ($discounts as $discount) @php $end_date = \Carbon\Carbon::parse($discount->discountable?->end_date); @endphp {{ $discount->discountable?->title }}

$discount->discountable?->active, 'text-yellow-800' => !$discount->discountable?->active, ])> @if ($discount?->discountable?->active) @lang('Active') @else @lang($end_date->isPast() ? 'Expired' : 'Scheduled') @endif

@if(is_null($discount->discountable?->end_date)) - @else {{ $end_date->format('M d, Y') }} {{ $end_date->format('H:i') }} @endif {{ $discount->type() }} @if ($discount->type() == 'Discount') {{ ($discount->discountable?->type == \App\Extensions\DiscountManager\System\Enums\DiscountTypeEnum::PERCENTAGE->value ? '' : currency()->symbol . ' ') . $discount->discountable?->amount . ($discount->discountable?->type == App\Extensions\DiscountManager\System\Enums\DiscountTypeEnum::PERCENTAGE->value ? '%' : '') }} {{ $discount->discountable?->type }} @else - @endif @if ($app_is_demo) @lang('Duplicate') @lang('Delete') @else @lang('Duplicate') @lang('Delete') @endif @empty {{ __('No discounts found.') }} @endforelse
@push('script') @endpush