locale update

This commit is contained in:
gerchek 2024-03-16 12:39:33 +05:00
parent 4bbbbdf1d6
commit 090ef393d7
4 changed files with 7 additions and 15 deletions

View File

@ -45,9 +45,7 @@ function onStart(){
<div class="rest_wrap">
<div class="rest_box">
<div class="rest_block tabItem active" id="rest-all">
{% for shop in shops%}
{% partial 'home/shop_item' shop=shop %}
{% endfor %}
{% partial 'home/shop_item' shops=shops %}
</div>
{% partial 'home/pagination' result=shops %}

View File

@ -9,6 +9,8 @@ function onStart(){
$query = '%' . input('q') . '%';
$this['shops'] = Tps\Shops\Models\Shop::where('name', 'LIKE', $query)
->get();
dd($this['shops']);
}
?>
==
@ -66,9 +68,7 @@ function onStart(){
</form>
<div class="rest_box">
{% for shop in shops%}
{% partial 'home/shop_item' shop=shop %}
{% endfor %}
{% partial 'home/shop_item' shops=shops %}
</div>
</div>
</div>

View File

@ -152,9 +152,7 @@ function onStart(){
</h2>
<div class="post_slider">
{% for shop in others %}
{% partial 'home/shop_item' shop=shop %}
{% endfor %}
{% partial 'home/shop_item' shops=shops %}
</div>
<div class="post_link">

View File

@ -16,16 +16,12 @@
</div>
<div class="rest_block tabInfo active" id="rest-all">
{% for shop in shop_all%}
{% partial 'home/shop_item' shop=shop %}
{% endfor%}
{% partial 'home/shop_item' shops=shops %}
</div>
{% for category in shop_categories %}
<div class="rest_block tabInfo" id="category-{{category.id}}">
{% for shop in category.getShops() %}
{% partial 'home/shop_item' shop=shop %}
{% endfor %}
{% partial 'home/shop_item' shops=shops %}
</div>
{% endfor %}