@if ($key == 0 || ($key+1 > 3 && ($key+1 -(floor(($key+1)%3)*3)) == 1)) @php $bg = "linear-gradient(to right, #e2583e 0%, #bf1931 100%);"; @endphp @elseif ($key == 1 || ($key+1 > 3 && ($key+1 -(floor(($key+1)%3)*3)) == 2)) @php $bg = "linear-gradient(to right, #7cc4c3 0%, #479493 100%);"; @endphp @elseif ($key == 2 || ($key+1 > 3 && ($key+1 -(floor(($key+1)%3)*3)) == 3)) @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
{{ single_price($coupon->discount) }} {{ translate('OFF') }}
@else{{ $coupon->discount }}% {{ translate('OFF') }}
@endif