{{translate('Add Your Category Base Item Coupon')}}
{{translate('Coupon code')}}
@foreach (json_decode($coupon->details) as $keyval => $details)
{{translate('Category')}}
@foreach(\App\Category::all() as $key => $category)
category_id == $category->id) selected @endif >{{$category->name}}
@endforeach
{{translate('Sub Category')}}
@foreach(\App\SubCategory::where('category_id', $details->category_id)->get() as $key => $subcategory)
subcategory_id == $subcategory->id) selected @endif >{{$subcategory->name}}
@endforeach
{{translate('Product')}}
@foreach(\App\Product::where('subcategory_id', $details->subcategory_id)->get() as $key => $product)
product_id == $product->id) selected @endif >{{$product->name}}
@endforeach
@if($keyval > 0)
@endif
@endforeach
{{translate('Category')}}
@foreach(\App\Category::all() as $key => $category)
{{$category->name}}
@endforeach
{{translate('Sub Category')}}
{{translate('Product')}}
{{ translate('Add More') }}
{{translate('Applicable For Min Item In Cart')}}
{{translate('Free Item')}}
{{translate('Date')}}
{{translate('to')}}
{{translate('Per User Usage')}}
@php $count = DB::table('coupon_usages')->where('coupon_id', $coupon->id)->count(); @endphp
{{translate('Redeem count')}}
Used count: {{$count}}