<div class="single-property-card single-property-card--size-lg ht-card ht-depth-1"> <a href="<?php echo e(url('nha-tro/'.str_slug($item->name).'-'.$item->id)); ?>" class="block"> <div class="card-header"> <div class="property__photo ht-rectangle ratio-43"> <div class="ht-inner bg-color-grey-300"> <img src="<?php echo e($item->image); ?>" alt=""> </div> </div> <?php if($item->status_confirm == 1): ?> <div class="property__badges"> <div class="single-badge single-badge--verified"> <i class="single-badge__icon ion-checkmark-circled"></i> <span class="single-badge__text">Đã xác thực</span> </div> </div> <?php else: ?> <div class="property__badges"> <div class="single-badge single-badge--verified"> <i class="single-badge__icon ion-checkmark-circled"></i> <span class="single-badge__text">Chưa xác thực</span> </div> </div> <?php endif; ?> <?php $rangePrices = \App\Components\Functions::getPriceHostelFrontend3($item);
            $rangeSizes = \App\Components\Functions::getAreaHostelFrontend3($item);
            ?> <?php if(!empty($rangePrices)): ?> <div class="property__prices"> <?php
                        $smallest = $rangePrices['smallest'];
                 $greatest = $rangePrices['greatest'];
                    ?> <?php if($smallest != $greatest): ?> <div class="single-price"> <span class="single-price__number"><?php echo e(number_format($smallest, 0, '.', '.')); ?></span> <span class="single-price__currency on-right">&#8363;</span> </div> <div class="divider">&minus;</div> <div class="single-price"> <span class="single-price__number"><?php echo e(number_format($greatest, 0, '.', '.')); ?></span> <span class="single-price__currency on-right">&#8363;</span> </div> <?php elseif($smallest > 0): ?> <div class="single-price"> <span class="single-price__number"><?php echo e(number_format($smallest, 0, '.', '.')); ?></span> <span class="single-price__currency on-right">&#8363;</span> </div> <?php else: ?> <div class="single-price"> <span class="single-price__number">Giá thỏa thuận</span> </div> <?php endif; ?> </div> <?php endif; ?> </div> <div class="card-content"> <div class="property__intro"> <h4 class="property__title"><?php echo e($item->name); ?> </h4> <div class="property__address"><img src="/frontend3/stock/icons/map.svg" style="height: 20px; width: 20px"> <?php echo e($item->address); ?> </div> </div> <div class="property__infos"> <?php $numbers = \App\Components\Functions::getNumberRoomsHostel($item); ?> <div class="single-info"> <span class="single-info__icon"><img src="/frontend3/assets/img/empty_room.svg"></span> <span class="single-info__data"><?php echo e(\App\Components\Functions::getNumber($numbers['number_empty_rooms'])); ?> phòng trống</span> </div> <div class="single-info"> <span class="single-info__icon"><img src="/frontend3/stock/icons/plans.svg"></span> <?php if(!empty($rangeSizes)): ?> <?php
                            $smallestSize = $rangeSizes['smallest'];
                     $greatestSize = $rangeSizes['greatest'];
                        ?> <?php if($smallestSize != $greatestSize): ?> <span class="single-info__data"><?php echo e($smallestSize); ?> - <?php echo e($greatestSize); ?>m2</span> <?php else: ?> <span class="single-info__data"><?php echo e($greatestSize); ?>m2</span> <?php endif; ?> <?php endif; ?> </div> </div> </div> </a> <?php if(auth('backend')->check()): ?> <div class="property__actions"> <a href="#" class="single-action single-action--like <?php if(\App\Components\Functions::checkFavourite(auth('backend')->user()->id, $item->id)): ?> active <?php endif; ?>" title="Thích" data-hostel-id="<?php echo e($item->id); ?>" data-toggle="tooltip" data-placement="top"><i class="ion-android-favorite-outline"></i></a> </div> <?php else: ?> <div class="property__actions"> <a href="#" class="single-action single-action--like" title="Thích" data-hostel-id="<?php echo e($item->id); ?>" data-toggle="tooltip" data-placement="top"><i class="ion-android-favorite-outline"></i></a> </div> <?php endif; ?> <div class="property__features cs-pt"> <?php $amenities = \App\Models\Amenity::join('hostel_amenities', 'amenities.id', '=', 'hostel_amenities.amenities_id')
        ->where('hostel_amenities.hostel_id', $item->id)->where('amenities.type', \App\Models\Amenity::AMENITY)->take(8)->orderBy('hostel_amenities.id', 'desc')->get();  ?> <?php $__currentLoopData = $amenities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $amenity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="single-feature"> <span class="single-feature__icon"><img src="/files/<?php echo e($amenity->web_image); ?>" alt=""></span> <span class="single-feature__text"><?php echo e($amenity->name); ?></span> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div>