48 lines
1.7 KiB
HTML
48 lines
1.7 KiB
HTML
[viewBag]
|
|
==
|
|
<?php
|
|
function onStart(){
|
|
|
|
$type = $this->type;
|
|
|
|
$this["productsq"] = TPS\Birzha\Models\Product::where("type", $type)->with("vendor")->get();
|
|
|
|
}
|
|
?>
|
|
==
|
|
<!-- Popular Items Area -->
|
|
<div class="popular_items_area home-3 section_padding_0_70">
|
|
<div class="container">
|
|
<div style="padding: 20px;border-radius: 6px;box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);background-color: #ffe0c7;border: 1px solid #fdc495;">
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<div class="popular_section_heading mb-30 text-center">
|
|
<h5 style="text-transform: capitalize;text-align:left;color:black;font-weight:bold;">{{header}}</h5>
|
|
</div>
|
|
</div>
|
|
<div class="col-6">
|
|
<div class="popular_section_heading mb-30 text-right">
|
|
<a href="{{ 'vip-products'|page({type: type}) }}" class="btn btn-primary" style="animation-delay: 600ms; opacity: 1; text-align:right">{{ 'product.Hemmesi'|_ }}</a>
|
|
<!-- <h5 style="text-transform: capitalize;text-align:right;color:black;font-weight:bold;">Hemmesi</h5> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="popular_items_slides owl-carousel">
|
|
|
|
{% for product in productsq %}
|
|
|
|
{% partial "product/card-item" product=product %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Popular Items Area --> |