<?php $__env->startSection('content'); ?>
<div class="page-title-container style2">
            <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-8 col-md-12">
                            <div class="hotel-list">
                                <div class="row image-box hotel listing-style1">
                                <?php foreach($data as $resort): ?>
                                                        <?php
                                $string = $resort->seo_description;
                                $address = $resort->address;
                                $address = substr($address, 0, 20); 
                                $name = substr($resort->name, 0, 20);

                                                        //$ = 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(AppHelper::config('hotel_route').'/'.$resort->type.'/'.$resort->seo_slug.''); ?>"><img  alt="" src="<?php echo URL('/media/uploads/images/hotel/size/340x340/'.AppHelper::hotelThumb($resort->id).''); ?>" style="min-height: 100%; width: 100%;"></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 $name; ?><small><?php echo $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 green" href="<?php echo URL(AppHelper::config('hotel_route').'/'.$resort->type.'/'.$resort->seo_slug.''); ?>">SELECT</a>
                                                    <a class="button btn-small yellow popup-map" href="#" data-box="<?php echo $resort->geo_cordinates; ?>">VIEW ON MAP</a>
                                                </div>
                                            </div>
                                        </article>
                                    </div>
                                <?php endforeach; ?>
                                   
                                </div>
                            </div>
                           

                            <ul class="pagination">
                                   <?php echo $data->links(); ?>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </section> 
        
<?php $__env->stopSection(); ?>
<?php echo $__env->make('front.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>