@extends('layouts.front_end') @section('title', 'Vendor Wise Products') @section('content')
Product View Product View
{{ $vendor_info->business_name }}

★ {{ $vendor_info->account_type }} ★

★Followers: {{ $vendor_followers->count() }}

@if ($vendor_info->about_vendor)

★{{ $vendor_info->about_vendor }}

@endif

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

সর্বনিম্ন অর্ডার: {{ $product['min_order_qty'] }} পিছ

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

@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
@php $minimumQuantity = $product['min_order_qty']; $orderQuantity = 0; if (isset($cardBadge['data']['products'][$product['id']])) { $minimumQuantity = $cardBadge['data']['products'][$product['id']]['minimum_order_quantity']; $orderQuantity = $cardBadge['data']['products'][$product['id']]['quantity']; } @endphp @if(!empty($product->MultiplePricing->count()>0)) Details @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