locale update
This commit is contained in:
parent
0151fea862
commit
733acdac03
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue