locale update

This commit is contained in:
gerchek 2024-03-16 12:54:37 +05:00
parent 0151fea862
commit 733acdac03
2 changed files with 10 additions and 3 deletions

View File

@ -17,6 +17,7 @@ function onStart(){
$this['sales_discount'] = $this['sales']->where("type", "discount")->slice(0, 6);
$this['shop_categories'] = Tps\Shops\Models\Category::where("top_category_id", $this->theme->main_shops)->orderBy('sort_order')->limit(3)->get();
dd($this['shop_categories']);
$this['shop_category_ids'] = $this['shop_categories']->lists('id');
$this['shop_all'] = Tps\Shops\Models\Shop::whereIn('category_id', $this['shop_category_ids'])->limit(6)->get();
}

View File

@ -1,4 +1,3 @@
==
<!-- Restaurant ========================= -->
<section class="rest">
<div class="auto_container">
@ -16,15 +15,22 @@
</div>
<div class="rest_block tabInfo active" id="rest-all">
{% partial 'home/shop_item' shops=shops %}
{% partial 'home/shop_item' shops=shop_all %}
</div>
{% for category in shop_categories %}
<div class="rest_block tabInfo" id="category-{{category.id}}">
{% partial 'home/shop_item' shops=shops %}
{% partial 'home/shop_item' shops=category.getShops() %}
</div>
{% endfor %}
</div>
</div>
</section>