Blame view
resources/views/catalogs/house_mini.blade.php
3.01 KB
f615f47db Страница каталога... |
1 2 3 4 5 |
<div class="card"> <div class="card__top"> @if (empty($house->foto_main)) @else |
8634eac35 Картинки обновлен... |
6 |
<img src="{{ asset(Storage::url($house->foto_main)) }}" alt="{{ $house->title }}" loading="lazy"/> |
f615f47db Страница каталога... |
7 8 9 |
@endif; <h3 class="card__title">{{$house->typearea->name_type }}</h3> |
3646d2a47 Механизм избранны... |
10 |
<div class="card__labels"><span class="card__label card__label-favorites js_card_favorites <?=\App\Classes\RusDate::selected_item($house->id);?>" data-val="{{$house->id}}" id="card_favorite{{$house->id}}" name="card_favorite{{$house->id}}"> |
f615f47db Страница каталога... |
11 12 13 14 15 |
<svg width="18" height="18"> <use xlink:href="{{ asset('images/sprite.svg#card-favorites-empty') }}"></use> </svg> <svg width="18" height="18"> <use xlink:href="{{ asset('images/sprite.svg#card-favorites') }}"></use> |
d2e30108c Линки телефонов в... |
16 17 |
</svg></span> <a class="card__label card__label-messenger" href="tel:{{ $items_contact[0]->telephone }}"> |
f615f47db Страница каталога... |
18 19 |
<svg width="25" height="25"> <use xlink:href="{{ asset('images/sprite.svg#card-messenger') }}"></use> |
d2e30108c Линки телефонов в... |
20 21 22 |
</svg> </a> </div> |
f615f47db Страница каталога... |
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
</div> <div class="card__cnt"> <div class="card__info"> <address class="card__line card__line-complex">{{ $house->areas->name_area }}</address> <address class="card__line">{{$house->metro}} ({{$house->description_metro }})<span style="background-color: #FFC955;"></span></address> <address class="card__line">{{$house->address }}</address> <div class="card__line">Площадь: <b>{{$house->area}} м2</b></div> <div class="card__line">Цена за м<sup>2</sup>: <b>{{ $house->price_m2 }}₽</b></div> </div> <? switch ($house->format_house) { case 'Аренда': $comment = "<span>в месяц</span>"; break; case 'Продажа': $comment = ""; break; case 'Бизнес': $comment= "<span>в месяц</span>"; break; case 'Арендованные': $comment = "<span>в месяц</span>"; break; |
0a94fb81d Админка - форма р... |
45 46 47 |
default: $comment = "<span>в месяц</span>"; break; |
f615f47db Страница каталога... |
48 49 50 51 52 53 |
} ?> <div class="card__price"><span>{{ $house->price }} ₽ </span><? echo $comment; ?> </div><a class="card__btn btn btn--bordered" href="{{ route('offer', ['house' => $house->id]) }}">Подробнее</a> </div> </div> |