@canany(['edit_vendorcoupons', 'delete_vendorcoupons']) @endcanany @if (isset($coupons) && !empty($coupons)) @foreach ($coupons as $k => $item) @endforeach @endif
S.No Coupon Code Max Amount Min Amount No.of times users can use coupon Shop Sub Category Product Coupon Percentage   Offer Ends   Description Status   Created at  Actions
{{ $k + $coupons->firstItem() }} {{ $item->coupon_code }} {{ $item->max_order_amount }} {{ $item->min_order_amt }} {{ $item->Discount_use_amt }} @if (isset($item->shop)) {{ $item->shop->name }} @endif @if (isset($item->sub_category_name)) {{ $item->sub_category_name }} @endif @if (isset($item->product_name)) {{ $item->product_name }} @endif {{ $item->coupon_percentage }}% {{ date('d-M-Y H:i:s', strtotime($item->expired_on)) }} {{ $item->coupon_description }}
active == 1 ? 'checked' : '' }} value="" onchange="change_status('{{ $item->id }}', 'coupons', '#customSwitchGlow{{ $k }}', 'active');" id="customSwitchGlow{{ $k }}">
{{ $created_at }}
{{ $coupons->links() }}