@extends($theme.'.layouts.admin') @section('content') @lang('messages.Home') @lang('messages.Top Offers') @if(!empty(Session::get('CustomerId'))) @lang('messages.View My List') @endif @if(!empty($product_list)) @foreach($product_list as $key => $product) @php $promotion_data = ''; if ($product->promotion_product == 1) { $promotion_data = $product->promotion_product_label; if (!empty($product->discount_label)) { $promotion_data = ' & '.$promotion_data; } } @endphp {{ $product->discount_label.$promotion_data }} @if($product->type == 'Veg') @else @endif {{$product->name_en}} @foreach($product->group_variants as $variant) @endforeach @if($count == 1) @foreach($product->group_variants as $variant) {{$variant->value_en}} @endforeach @endif @if($count > 1) @foreach($product->group_variants as $variant) get('token')) data-is-favourite="{{$variant->is_favourite}}" @endif data-name="{{ $variant->name_en }}" data-old-warehouse="{{$product->warehouse_product_id }}" data-url="{{ route('product-detail',['id' => $variant->id,'group_name_slug'=>$product->group_name_slug]) }}" data-warehouse-product="{{ $variant->id }}" data-parent-warehouse-product="{{ $product->warehouse_product_id }}" data-price="{{ $variant->price }}" data-group-name-slug="{{$product->group_name_slug}}" data-discounted-price="{{ $variant->discounted_price }}" data-image1="{{$variant->image1}}" data-variant-en="{{$variant->value_en}}" data-label="{{$variant->discount_label}}" data-vendor="{{ $product->vendor_id }}" data-product="{{ $variant->product_id }}" value="{{$variant->id}}" @if($product->warehouse_product_id == $variant->id) selected @endif> {{$variant->value_en}} - @lang('messages.Rs') {{$variant->discounted_price}} @endforeach @endif @endforeach @else
{{$variant->value_en}}