@can('massDelete', \App\Models\Coupon::class)
|
@endcan
{{ $coupon->name }}
@if ($coupon->ending_time < \Carbon\Carbon::now())
{{ strtoupper(trans('app.expired')) }}
@elseif(!$coupon->isActive())
{{ strtoupper(trans('app.inactive')) }}
@endif
|
{{ $coupon->code }} |
{{ get_yes_or_no($coupon->customers_count || $coupon->promotion_zones_count) }} |
{{ $coupon->type == 'amount' ? get_formated_currency($coupon->value, 2, config('system_settings.currency.id')) : get_formated_decimal($coupon->value) . ' ' . trans('app.percent') }}
|
{{ $coupon->starting_time ? $coupon->starting_time->toDayDateTimeString() : '' }}
|
{{ $coupon->ending_time ? $coupon->ending_time->toDayDateTimeString() : '' }}
|
@can('view', $coupon)
@endcan
@can('update', $coupon)
@endcan
@can('delete', $coupon)
{!! Form::open(['route' => ['admin.promotion.coupon.trash', $coupon->id], 'method' => 'delete', 'class' => 'data-form']) !!}
{!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!}
{!! Form::close() !!}
@endcan
|
@endforeach