<?php $__env->startSection('content'); ?>

<!-- BEGIN .section -->
<div class="section accommodation-page page-full clearfix">

	<h2 class="page-title page-title-full">Phòng nghỉ</h2>
	
	<hr>					
	<!-- BEGIN .section -->
	<div class="section clearfix">
		<?php foreach($rooms as $room): ?>
		<?php $arr = explode(';', $room -> image) ; ?>
		<div class="one-third-full">
			<p><div class="block-img1"><a href="<?php echo e(Asset('home/room-detail')); ?>/<?php echo e($room->id); ?>"><img src="<?php echo e($arr[0]); ?>" width="278" height="173" alt="" /></a></div></p>
			<h3 class="title1"><a href="<?php echo e(Asset('home/room-detail')); ?>/<?php echo e($room->id); ?>"><?php echo e($room -> name); ?></a><span class="title-end"></span></h3>		
			<p><?php echo e(substr($room -> description, 0, 112)); ?></p>
			<p><a href="<?php echo e(Asset('home/room-detail')); ?>/<?php echo e($room->id); ?>" class="button2">Xem thêm &raquo;</a></p>
		</div>
		<?php endforeach; ?>
	<!-- END .section -->
	</div>
	
	<div class="page-pagination page-pagination-full">
		<p class="clearfix">
			<span class="fl"><a href="<?php echo e($rooms->previousPageUrl()); ?>">&larr; Previous</a></span>
			<span class="fr"><a href="<?php echo e($rooms->nextPageUrl()); ?>">Next &rarr;</a></span>
		</p>
	</div>

<!-- END .section -->
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('template.room', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>