added featured products

This commit is contained in:
franknstayn
2021-07-23 20:42:59 +08:00
parent 13509568eb
commit a6ea024725
6 changed files with 178 additions and 134 deletions

View File

@@ -109,22 +109,23 @@
<h3>Featured Products</h3>
</div>
</div>
@foreach ($featured_products as $product)
<div
class="col-lg-2 col-md-3 col-6"
v-for="index in 6"
:key="index"
>
<div class="text-center p-3">
<a href="{{ url('store') . '/' . $product->StoreUrl . '/product/' . $product->ProductURL }}">
<div class="store-logo">
<v-lazy-image
src="https://crewsportswear.com/uploads/images/teamstore/all-in-athletics/logo.jpg"
class="d-block border shadow-sm"
alt="..."
/>
<img src="{{ config('site_config.images_url') . '/' . $product->Image }}" alt="{{ $product->ProductName }}" class="d-block border shadow-sm">
</div>
<div class="store-name text-truncate">22PLE</div>
<div class="store-name text-truncate">{{ $product->ProductName }}</div>
</a>
</div>
</div>
@endforeach
</div>
</div>
</div>

View File

@@ -365,27 +365,27 @@
<div class="row py-5">
<div class="col-lg-12">
<h4>Other similar products</h4>
<h4>From the same Store</h4>
</div>
<div class="col-md-12">
{{-- <div class="col-md-12">
<p>...</p>
</div>
{{-- <div
</div> --}}
@foreach ($store_products as $product)
<div
class="col-lg-2 col-md-3 col-6"
v-for="index in 6"
:key="index"
>
<div class="text-center p-3">
<a href="{{ url('store') . '/' . $product->StoreUrl . '/product/' . $product->ProductURL }}">
<div class="store-logo">
<v-lazy-image
src="https://crewsportswear.com/uploads/images/teamstore/all-in-athletics/logo.jpg"
class="d-block border shadow-sm"
alt="..."
/>
<img src="{{ config('site_config.images_url') . '/' . $product->Image }}" alt="{{ $product->ProductName }}" class="d-block border shadow-sm">
</div>
<div class="store-name text-truncate">22PLE</div>
<div class="store-name text-truncate">{{ $product->ProductName }}</div>
</a>
</div>
</div> --}}
</div>
@endforeach
</div>
</div>
</div>