@lang('coupon.Coupons')
@if (auth('admin')->user()->hasPermissionTo('create coupons', 'admin'))
@endif
@if (session('message'))
{{ session('message') }}
@endif
| @lang('category.ID') | @lang('coupon.Code') | @lang('coupon.Type') | @lang('coupon.Value') | @lang('coupon.MinimumSpend') | @lang('coupon.UsageLimit') | @lang('coupon.StartDate') | @lang('coupon.EndDate') | @lang('coupon.IsActive') | @lang('category.Actions') |
|---|---|---|---|---|---|---|---|---|---|
| {{ $coupon->id }} | {{ $coupon->code }} | @lang('coupon.' . ucfirst($coupon->type)) | {{ $coupon->value }} | {{ $coupon->minimum_spend ?? '-' }} | {{ $coupon->usage_limit ?? '-' }} | {{ $coupon->start_date ? \Carbon\Carbon::parse($coupon->start_date)->format('Y-m-d H:i') : '-' }} | {{ $coupon->end_date ? \Carbon\Carbon::parse($coupon->end_date)->format('Y-m-d H:i') : '-' }} | {{ $coupon->is_active ? __('coupon.Active') : __('coupon.Inactive') }} | @if (auth('admin')->user()->hasPermissionTo('view coupons', 'admin')) @lang('category.show') @endif @if (auth('admin')->user()->hasPermissionTo('update coupons', 'admin')) @lang('category.edit') @endif {{-- --}} @if (auth('admin')->user()->hasPermissionTo('delete coupons', 'admin')) @endif |