Files
opensem/resources/views/shop/admin/Sections/partials/lot-promo.blade.php
2020-03-30 00:48:17 +02:00

74 lines
2.8 KiB
PHP

<div class="col-lg-4 col-md-4">
<div class="property bg-light-2 m-bottom-30 box-shadow-1 box-shadow-2-hover border-1 border-solid border-light">
<div class="property-media overlay-wrapper">
@if (isset($lot['residence']['photos'][0]))
<img class="img-responsive wow fadeIn" data-wow-offset="100" src="{{ \App\Repositories\Hestimmo\ResidencePhotos::getPhotoSrc($lot['residence']['photos'][0]) }}" alt="Lot">
@else
<img src="/img/photo_notfound.jpg" class="img-responsive img-rounded">
@endif
<div class="media-data">
<div class="position-top">
<div class="text-white text-size-24 pull-right">
<!--
<a class="text-white text-base-hover" href="#">
<i class="fa fa-heart-o"></i>
</a>
-->
</div>
</div>
<div class="position-bottom">
<div class="badge badge-base text-white pull-left m-right-8 p-top-8 p-right-12 p-bottom-8 p-left-12 rounded-0">
@if (isset($lot['dispositifs'][0]))
{{ $lot['dispositifs'][0]['type_dispositif']['nom'] }}
@endif
</div>
<div class="text-white text-size-18 pull-right">
<i class="fa fa-camera"></i>
{{ $lot['photos_count'] }}
</div>
</div>
</div>
<div class="overlay bg-bg opacity-9"></div>
</div>
<div class="property-section p-left-15 p-right-15">
<div class="m-top-20">
<div class="row">
<div class="col-xs-6">
<h2>
{{ $lot['type_lot']['nom'] }}
</h2>
</div>
<div class="col-xs-6">
<h2 class="text-base text-bold-700 bleu wow heartBeat" data-wow-offset="100">
{{ App\Repositories\Core\Number::price($lot['prix_total']) }}
</h2>
</div>
</div>
@if (!empty($lot['description']))
{!! $lot['description'] !!}
@else
{!! $lot['residence']['description'] !!}
@endif
<p>
<a href="#" class="bleu">
<span class="fa fa-2x fa-map-marker"></span>
</a>
<strong>{{ $lot['batiment']['adresse'] }} {{ $lot['batiment']['code_postal'] }} {{ $lot['batiment']['ville'] }}</strong>
</p>
<ul class="icon-list list-inline m-bottom-0">
<li class="list-inline-item"><span class="bleu fa fa-map-o"></span> {{ $lot['type_lot']['nb_pieces'] }} pièces</li>
<li class="list-inline-item"><span class="bleu fa fa-bed"></span> {{ $lot['type_lot']['nb_chambres'] }} @if ($lot['type_lot']['nb_chambres'] > 1) chambres @else chambre @endif</li>
<li class="list-inline-item"><span class="bleu fa fa-expand"></span> <strong>{{ $lot['surface'] }} </strong></li>
</ul>
</div>
</div>
<div class="text-right">
<button type="button" data-id="{{ $lot['id'] }}" data-toggle='modal' data-target='#lot-detail' class="btn btn-primary btn-sm btn-lot-detail" style="margin: 10px 10px 10px 0;">
<i class="fa fa-eye"></i> Voir le détail
</button>
</div>
</div>
</div>