| # | Name | Plan | Amount | Start Date | End Date | Type | Is Active | Action | ||
|---|---|---|---|---|---|---|---|---|---|---|
| {{($key+1) + ($coupons->currentPage() - 1)*$coupons->perPage()}} | {{$coupon->name}} |
@foreach ($coupon->plan_ids as $plan_id)
@if($coupon->type == 'new')
{{App\Models\Admin\Plan::where('id',$plan_id)->first()->title}} @else @php $upgrade_to = explode('-',$plan_id); @endphp {{App\Models\Admin\Plan::where('id',$upgrade_to[0])->first()->title}} To {{App\Models\Admin\Plan::where('id',$upgrade_to[1])->first()->title}} @endif @endforeach |
₹ {{$coupon->amount}} | {{date('d-m-Y',strtotime($coupon->start))}} | {{date('d-m-Y',strtotime($coupon->end))}} | {{ucwords($coupon->type)}} | @if($coupon->is_active == '1') Active @else Not Active @endif | |||
Nothing Found |
||||||||||
Showing {{($coupons->currentpage()-1)*$coupons->perpage()+1}} to {{(($coupons->currentpage()-1)*$coupons->perpage())+$coupons->count()}} of {{$coupons->total()}} Coupons
{!! $coupons->links() !!}