<?php $__env->startSection('content'); ?>
<div class="page-title-container">
            <div class="container">
                <div class="page-title pull-left">
                    <h2 class="entry-title uppercase"><?php echo $heading; ?></h2>
                </div>
                <ul class="breadcrumbs pull-right">
                    <li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="#" itemprop="url"><span itemprop="title"><?php echo AppHelper::config('site_name'); ?></span></a></li>
                    <li itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="active"><a href="" itemprop="url"><span itemprop="title"><?php echo $heading; ?></span></a></li>
                </ul>
            </div>
        </div>
        <section id="content">
            <div class="container">
                <div id="main">
                    <div class="row">
                        <div class="col-sm-4 col-md-3 mobile-hide">
                            <h4 class="search-results-title"><i class="soap-icon-search"></i><b><?php echo 22; ?></b> results found.</h4>
                            <div class="toggle-container filters-container">
                                <div class="panel style1 arrow-right">
                                    <h4 class="panel-title">
                                        <a data-toggle="collapsed">Price</a>
                                    </h4>
                                    <div id="price-filter" class="panel-collapse collapsed">
                                        <div class="panel-content">
                                            <div id="price-range"></div>
                                            <br />
                                            <span class="min-price-label pull-left"></span>
                                            <span class="max-price-label pull-right"></span>
                                            <div class="clearer"></div>
                                        </div><!-- end content -->
                                    </div>
                                </div>
                                
                                <div class="panel style1 arrow-right">
                                    <h4 class="panel-title">
                                        <a data-toggle="collapse" href="#rating-filter" class="collapsed">User Rating</a>
                                    </h4>
                                    <div id="rating-filter" class="panel-collapse collapse">
                                        <div class="panel-content">
                                            <div id="rating" class="five-stars-container editable-rating"></div>
                                            <br />
                                            <small>2458 REVIEWS</small>
                                        </div>
                                    </div>
                                </div>
                                
                                
                                <div class="panel style1 arrow-right">
                                    <h4 class="panel-title">
                                        <a data-toggle="collapsed">Amenities</a>
                                    </h4>
                                    <div id="amenities-filter" class="panel-collapse">
                                        <div class="panel-content">
                                            <ul class="check-square filters-option">
                                            <?php foreach($facilities as $facility): ?>
                                                <li><a href="#"><?php echo $facility->name; ?><small>*</small></a></li>
                                            <?php endforeach; ?>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                                

                            </div>
                        </div>
                        <div class="col-sm-8 col-md-9">
                            <div class="hotel-list">
                                <div class="row image-box hotel listing-style1">
                                <?php foreach($data as $resort): ?>
                                                        <?php
                                $string = $resort->seo_description;

                                                        //$ = strip_tags($your_string); 
                                $desc = substr($string, 0, 100); 
                                ?>

                                    <div class="col-sm-6 col-md-4">
                                        <article class="box">
                                            <figure>
                                                <a href="<?php echo URL('popupgallery'); ?>?category=slides&resort_id=<?php echo $resort->id; ?>" class="hover-effect popup-gallery"><img width="270" height="160" alt="" src="<?php echo URL('/media/uploads/images/hotel/size/263x197/'.AppHelper::hotelThumb($resort->id).''); ?>"></a>
                                            </figure>
                                            <div class="details">
                                                <span class="price">
                                                    <small>avg/night</small>
                                                    $<?php echo AppHelper::fromRate('hotel', $resort->id); ?>

                                                </span>
                                                <h4 class="box-title"><?php echo $resort->name; ?><small><?php echo $resort->address; ?></small></h4>
                                                <div class="feedback">
                                                    <div data-placement="bottom" data-toggle="tooltip" class="five-stars-container" title="<?php echo $resort->rating; ?> stars"><span style="width: <?php echo 20 * $resort->rating; ?>%;" class="five-stars"></span></div>
                                                    <span class="review">270 reviews</span>
                                                </div>
                                                <p class="description"><?php echo $desc; ?>..</p>
                                                <div class="action">
                                                    <a class="button btn-small" href="<?php echo URL('maldives/'.$resort->type.'/'.$resort->seo_slug.''); ?>">SELECT</a>
                                                    <a class="button btn-small yellow popup-map" href="#" data-box="<?php echo $resort->geo_coordinates; ?>">VIEW ON MAP</a>
                                                </div>
                                            </div>
                                        </article>
                                    </div>
                                <?php endforeach; ?>
                                   
                                </div>
                            </div>
                            <a href="#" class="uppercase full-width button btn-large">load more listing</a>
                        </div>
                    </div>
                </div>
            </div>
        </section> 
        
<?php $__env->stopSection(); ?>
<?php echo $__env->make('front.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>