@if($coupon->type == 'percent')
Percent (%)
@else
Flat amount
@endif
|
@if($coupon->type == 'percent')
{{$coupon->amount}} %
@else
{{$coupon->amount}} QAR
@endif
|
@if($coupon->customer_type == 'wise_customer')
Wise Customer
@else
All Customers
@endif
|
@if($coupon->customer_type == 'wise_customer')
@if($coupon->is_used_at)
YES
@else
NO
@endif
@else
--
@endif
|
@if($coupon->is_used_at)
{{date('d-m-Y H:i', strtotime($coupon->is_used_at))}}
@else
--
@endif
|
@if($coupon->user_id)
{{ @$coupon->user->name }}
@else
--
@endif
|
@if($coupon->subscription_id)
{{ @$coupon->subscription->package->name }}
@else
--
@endif
|
{{date('d-m-Y H:i', strtotime($coupon->expired_at))}}
|