@extends('layouts.front_end') @section('title', 'Shop') @section('content')

Showing Products @if (count($data['products']) >= 50) {{ count($data['products']) }} @else {{ count($data['products']) }} @endif Of {{ count($data['products']) }} Result

@foreach ($data['products'] as $productId => $product)
ProductImageFirst)) src="{{ asset('storage/photo/' . $product->ProductImageFirst->image) }}" @else src="{{ asset('image-not-available.jpg') }}" @endif style="width: 100%;height: auto;" alt="{{ $product['name'] }}"> {{-- {{$product['name']}} --}} @if (isset($product['special_price'])) {{ intval($product['regular_price'] - $product['special_price']) }} @if ($currencySymbol) {{ $currencySymbol->symbol }}@endif @if (isset($language->discount)) {{ $language->discount }} @else discount @endif @endif
@if (strlen($product['name']) > 50) {{ \Illuminate\Support\Str::limit($product['name'], 50) . '...' }} @else {{ $product['name'] }} @endif @php if($product['is_multiplication'] == '1'){ if($product['multiplication_value'] > 0){ $min_qty = $product['multiplication_value']; }else{ $min_qty = $product['min_order_qty']; } }else{ $min_qty = $product['min_order_qty']; }@endphp

সর্বনিম্ন অর্ডার: {{ $min_qty }} পিছ

@for ($i = 1; $i <= $product->avgReviewRating(); $i++) @endfor

@if (empty($product->priceRange) || $product->priceRange->count() == 0)
@if (!Auth::user()) @if ($currencySymbol) {{ $currencySymbol->symbol }}{{ $product['special_price'] }} @else {{ $product['special_price'] }} @endif @elseif(isset(Auth::user()->Contact) && Auth::user()->Contact->contact_type == 'Wholesale') @if ($currencySymbol) {{ $currencySymbol->symbol }}{{ $product['wholesale_price'] }} @else {{ $product['wholesale_price'] }} @endif @elseif(isset(Auth::user()->Contact) && Auth::user()->Contact->contact_type != 'Wholesale') @if ($currencySymbol) {{ $currencySymbol->symbol }}{{ $product['special_price'] }} @else {{ $product['special_price'] }} @endif @endif @if ($currencySymbol) {{ $currencySymbol->symbol }}{{ $product['regular_price'] }} @else {{ $product['regular_price'] }} @endif
@endif @php $minimumQuantity = $product['min_order_qty']; $orderQuantity = 0; if($product['is_multiplication']){ if($product['multiplication_value'] > 0){ $minimumQuantity = $product['multiplication_value']; }else{ $minimumQuantity = $product['min_order_qty']; } } else if (isset($cardBadge['data']['products'][$product['id']])) { //$minimumQuantity = $cardBadge['data']['products'][$product['id']]['minimum_order_quantity']; $minimumQuantity = $product['multiplication_value'] != 0 ? $product['multiplication_value']: $product['min_order_qty']; $orderQuantity = $cardBadge['data']['products'][$product['id']]['quantity']; } @endphp @if (!empty($product->priceRange->count() > 0))
@if (Auth::user()) @if (Auth::user()->Contact) @if (Auth::user()->Contact->contact_type == 'Wholesale') {{ $range->sale_price_with_commission }} @if ($currencySymbol) {{ $currencySymbol->symbol }}{{$product->priceRange->min('sale_price_with_commission')}} - {{ $currencySymbol->symbol }}{{$product->priceRange->max('sale_price_with_commission')}} @else {{$product->priceRange->min('sale_price_with_commission')}} - {{$product->priceRange->max('sale_price_with_commission')}} @endif @else @if ($currencySymbol) {{ $currencySymbol->symbol }}{{$product->priceRange->min('sale_price_with_commission')}} - {{ $currencySymbol->symbol }}{{$product->priceRange->max('sale_price_with_commission')}} @else {{$product->priceRange->min('sale_price_with_commission')}} - {{$product->priceRange->max('sale_price_with_commission')}} @endif @endif @endif @else @if ($currencySymbol) {{ $currencySymbol->symbol }}{{$product->priceRange->min('regular_sale_price')}} - {{ $currencySymbol->symbol }}{{$product->priceRange->max('regular_sale_price')}} @else {{$product->priceRange->min('regular_sale_price')}} - {{$product->priceRange->max('regular_sale_price')}} @endif @endif
Details @elseif($product->product_type == '1') মডেল সিলেক্ট করুন @else @if ($product['in_stock'] == 'Out of Stock') @if (isset($language->sold_out_button_text)) {{ $language->sold_out_button_text }} @else Sold Out @endif @else @if (isset($language->sell_button_text)) {{ $language->sell_button_text }} @else Buy Now @endif @endif Contact->contact_type == 'Wholesale') data-product-price="{{ $product['wholesale_price'] }}" @else data-product-price="{{ $product['special_price'] }}" @endif @else data-product-price="{{ $product['special_price'] }}" @endif data-product-quantity="{{ $orderQuantity ? $orderQuantity : $minimumQuantity }}" data-product-minimum-quantity="{{ $minimumQuantity }}" data-product-guarantee="{{ $product['guarantee'] }}" @if ($product->ProductImageFirst) data-product-image="{{ asset('storage/photo/' . $product->ProductImageFirst->image) }}" @endif data-toggle="modal" data-target=".bd-example-modal-sm" @if ($product['in_stock'] == 'Out of Stock') style="pointer-events: none;" @endif style="color: #ff5c00;"> @if ($product['in_stock'] == 'Out of Stock') @if (isset($language->sold_out_button_text)) {{ $language->sold_out_button_text }} @else Sold Out @endif @else @if (isset($language->sell_button_text)) {{ $language->sell_button_text }} @else Buy Now @endif @endif @endif
@endforeach
@if (isset($search_type) && isset($search_value)) {{ $data['products']->appends([$search_type => $search_value])->links('pagination::bootstrap-4') }} @else {{ $data['products']->links('pagination::bootstrap-4') }} @endif
@endsection @push('scripts') @endpush