@extends ('back_office.layouts.app') @section('content')
All Discount Coupons
+  New Coupon
@can('area-management') @endcan @foreach($coupons as $key => $coupon) @endforeach
CODE TYPE VALUE CUSTOMER TYPE IS USED IS USED AT IS USED BY IS USED ON EXPIRED ATAction
{{$coupon->code}}
@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))}}
@endsection