catalog_ajax.blade.php
3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<div class="tabs__item tabs__item-active js-tab_1 tabs-item-catalog" >
<?if ($goods->count()) {?>
@foreach ($goods as $good)
<div class="content-item">
<div class="swiper swiper-catalog swiperCatalog">
<div class="swiper-icons">
<div class="swiper-icons-left">
<svg class="swiper-icons-left__clock">
<use xlink:href="{{ asset('/img/icons.svg#clock')}}"></use>
</svg>
<p class="swiper-icons-left__text">Под заказ</p>
</div>
<div class="swiper-icons-right">
<span class="swiper-icons-right__compare js_compare"></span>
<span class="swiper-icons-right__favorite js_favorite"></span>
</div>
</div>
<div class="swiper-wrapper">
@if (!empty($good->image))
<div class="swiper-slide"><img src="{{ asset(Storage::url($good->image)) }}" width="250px" alt=""></div>
@endif
<!--<div class="swiper-slide"><img src="./img/main/catalog/cat-1.png" alt=""></div>
<div class="swiper-slide"><img src="./img/main/catalog/cat-1.png" alt=""></div>-->
</div>
<div class="swiper-pagination"></div>
</div>
<div class="content-text">
<a class="content-text-hover" href="{{ route('good', ['good' => $good->id]) }}">
<p>
{{$good->text}}
</p>
</a>
<h5 class="content-text__title">
{{ $good->title }}
</h5>
<div class="content-info">
<div class="info-one">
<? if ((!empty($good->diametr_min)) && ($good->diametr_min > 0) &&
(!empty($good->diametr_max)) && ($good->diametr_max > 0)) {?>
<p class="info-one__par"><span class="content-info__par-title">⌀ обработки:</span> {{$good->diametr_min}}-{{$good->diametr_max}} мм
</p>
<? } ?>
<? if ((!empty($good->RMC_min)) && ($good->RMC_min > 0) &&
(!empty($good->RMC_max)) && ($good->RMC_max > 0)) {
?>
<p class="info-one__par"><span class="content-info__par-title">РМЦ</span> {{$good->RMC_min}} - {{$good->RMC_max}} мм</p>
<? } ?>
<p class="info-one__par"><span>Мощность</span> {{$good->power}} кВт</p>
<p class="info-one__par"><span>Вес</span> {{$good->weight}} кг</p>
</div>
<div class="info-two">
<p class="info-two__title">Производитель:</p>
<div class="info-two-wrapper">
<img class="info-two-wrapper__country" src="{{ asset('/img/main/catalog/country/'.$good->country.'.svg') }}" alt="">
<span class="info-two-wrapper__name">{{ $good->manufacturer }}</span>
</div>
</div>
</div>
<div class="content-text-down">
@if ($good->price_old > 0)
<span class="content-text-down__before content-text-down__before--active">{{$good->price_old}} ₽</span>
@endif
@if ($good->price > 0)
<p class="content-text-down__price">
{{$good->price}} ₽
</p>
@endif
<button class="content-text-down__button">В каталог</button>
</div>
</div>
</div>
@endforeach
<? } ?>
</div>
<div class="pagination" style="padding-top: 25px;">
<!--<a class="catalog-content-btn pagination__btn-next" href="#">Показать еще</a>-->
<?=$goods->appends($_GET)->links('catalogs.paginate');?>
</div>