@if ($key == 0 || ($key+1 > 3 && (($key+1)%3) == 1)) @php $bg = "linear-gradient(to right, #e2583e 0%, #bf1931 100%);"; @endphp @elseif ($key == 1 || ($key+1 > 3 && (($key+1)%3) == 2)) @php $bg = "linear-gradient(to right, #7cc4c3 0%, #479493 100%);"; @endphp @elseif ($key == 2 || ($key+1 > 3 && (($key+1)%3) == 0)) @php $bg = "linear-gradient(to right, #98b3d1 0%, #5f4a8b 100%);"; @endphp @endif @if($coupon->type == 'product_base') @php $products = json_decode($coupon->details); $coupon_products = []; foreach($products as $product) { array_push($coupon_products, $product->product_id); } @endphp @else @php $order_discount = json_decode($coupon->details); @endphp @endif @php if($coupon->user->user_type != 'admin') { $shop = $coupon->user->shop; $name = $shop->name; } else { $name = get_setting('website_name'); } @endphp

{{ $name }} @if (\Request::route()->getName() == 'coupons.all') user->user_type != 'admin') href="{{ route('shop.visit', $shop->slug) }}" @else href="{{ route('inhouse.all') }}" @endif class="ml-3 text-white hov-text-warning fs-13" style="text-decoration: underline;" > {{ translate('Visit Store') }} @endif

@if($coupon->discount_type == 'amount')

{{ single_price($coupon->discount) }} {{ translate('OFF') }}

@else

{{ $coupon->discount }}% {{ translate('OFF') }}

@endif

@if($coupon->type == 'product_base') @php $products = get_multiple_products($coupon_products); @endphp @else @if($coupon->discount_type == 'amount') {{ translate('Min Spend ') }} {{ single_price($order_discount->min_buy) }} {{ translate('from') }} {{ $name }} {{ translate('to get') }} {{ single_price($coupon->discount) }} {{ translate('OFF on total orders') }} @else {{ translate('Min Spend ') }} {{ single_price($order_discount->min_buy) }} {{ translate('from') }} {{ $name }} {{ translate('to get') }} {{ $coupon->discount }}% {{ translate('OFF on total orders') }} @endif @endif
{{ translate('Code') }}: {{ $coupon->code }}