Blame view
resources/views/catalog_ajax.blade.php
4.13 KB
e73374e87 Каталог ajax, адм... |
1 |
<div class="tabs__item tabs__item-active js-tab_1 tabs-item-catalog" > |
477c05de1 Каталог страница,... |
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 |
<?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"> |
e861ef0f4 Результативная ча... |
61 |
<? if (!empty($good->price)) { ?> |
477c05de1 Каталог страница,... |
62 63 64 65 66 67 68 69 |
@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 |
34528a0ad Линки на каталог ... |
70 |
<a class="content-text-down__button" href="{{ route('catalog_detail', ['category'=> $good->category_id]) }}">В каталог</a> |
e861ef0f4 Результативная ча... |
71 72 73 |
<? } else {?> <button class="content-text-down__calculate">Узнать цену</button> <? } ?> |
477c05de1 Каталог страница,... |
74 75 76 77 78 |
</div> </div> </div> @endforeach <? } ?> |
e73374e87 Каталог ajax, адм... |
79 80 81 82 83 |
</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> |