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_wrap">
<div class="rest_box"> <div class="rest_box">
<div class="rest_block tabItem active" id="rest-all"> <div class="rest_block tabItem active" id="rest-all">
{% for shop in shops%} {% partial 'home/shop_item' shops=shops %}
{% partial 'home/shop_item' shop=shop %}
{% endfor %}
</div> </div>
{% partial 'home/pagination' result=shops %} {% partial 'home/pagination' result=shops %}

View File

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

View File

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

View File

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