| {{translate('SL')}} | {{translate('coupon_title')}} | {{translate('coupon_type')}} | {{translate('coupon_amount')}} | {{translate('duration')}} | {{translate('total_times_used')}} | {{translate('total_coupon')}} | {{translate('average_coupon')}} | {{translate('coupon_status')}} | {{translate('status')}} | {{translate('created_at')}} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{++$key}} | {{$d['name']}} | {{$d['coupon_type']}} | {{ $d['amount_type'] == 'percentage'? $d['coupon'].'%':'$'.$d['coupon'] }} |
{{translate('start')}} : {{$d['start_date']}} {{translate('end')}} : {{$d['end_date']}} {{translate('duration')}} : {{ Carbon\Carbon::parse($d['end_date'])->diffInDays($d['start_date'])}} Days |
{{ (int)$d['total_used'] }} | {{ set_currency_symbol(round($d['total_amount'],2)) }} | {{ set_currency_symbol(round($d['total_used'] > 0?($d['total_amount']/$d['total_used']):0,2)) }} | @php($date = Carbon\Carbon::now()->startOfDay()) @if($date->gt($coupon['end_date'])) {{ translate(EXPIRED) }} @elseif (!$coupon['is_active']) {{ translate(CURRENTLY_OFF) }} @elseif ($date->lt($d['start_date'])) {{ translate(UPCOMING) }} @elseif ($date->lte($d['end_date'])) {{ translate(RUNNING) }} @endif | {{$d['is_active'] ? 'active' : 'inactive'}} | {{date(DATE_FORMAT, strtotime($d['created_at']))}} |
{{translate('note:_this_is_software_generated_copy')}}