

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


<div class="content" id="content">			
	<div class="overlay"></div>			
	
<?php echo $__env->make('admin.includes.topbar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
	
	<!-- main content -->
	<div class="main-content">
		<div class="manage_buttons">
			<div class="row">
				<div class="col-md-3 search">
					<form action="#" method="post">
						<input type="text" name="search" id="search" class="form-control" placeholder="Search">
					</form>
				</div>
				<div class="col-md-9">
					<div class="buttons-list">
						<div class="pull-right-btn">
							<a href="<?php echo URL('admin/addhotel'); ?>" class="btn btn-primary">Add New Hotel</a>
						</div>
					</div>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-md-12">
				<!-- panel -->
				<div class="panel panel-piluku panel-users">
					<div class="panel-heading">
						<h3 class="panel-title">
							List of Hotels
							<span class="panel-options">
								<a href="#" class="panel-refresh">
									<i class="icon ti-reload"></i> 
								</a>
								<a href="#" class="panel-minimize">
									<i class="icon ti-angle-up"></i> 
								</a>
								<a href="#" class="panel-close">
									<i class="icon ti-close"></i> 
								</a>
							</span>
						</h3>
					</div>
					<div class="panel-body nopadding">
						<div class="table-responsive">
							<table class="table table-hover">
								<thead>
									<tr>
										<th>&nbsp;</th>	
						                <th>Name</th>
						                <th>Rating</th>
						                <th>&nbsp;</th>
										<th>&nbsp;</th>
										<th>&nbsp;</th>
										<th>&nbsp;</th>
										<th>&nbsp;</th>
									
									</tr>
								</thead>
								<tbody>
								     <?php foreach($data as $hotel): ?>
									<tr class="table-row">
										<td>
											<img src="<?php echo URL('/media/uploads/images/hotel/size/263x197/'.AppHelper::hotelThumb($hotel->id).''); ?>" alt="user">
										</td>
						                <td><?php echo $hotel->name; ?></td>
						                <td>
						                <?php 
						                $number = $hotel->rating;
						                while($number > 0){
						                	echo '<i class="fa fa-star" style="color:#F6B055"></i>';
						                	$number = $number - 1;
						                }
						                ?>
						                </td>

										<td>
											<a href="<?php echo URL('admin/edithotel'); ?>/<?php echo $hotel->id; ?>"class="btn btn-green"><i class="ion ion-edit"></i></a>

										</td>
										<td>
											<a href="<?php echo URL('admin/suppliments'); ?>/<?php echo $hotel->id; ?>" class="btn btn-green">S</a>
										</td>
										<td>
											<a href="<?php echo URL('admin/rooms'); ?>/<?php echo $hotel->id; ?>" class="btn btn-green">R</a>
										</td>
										<td>
											<a href="<?php echo URL('admin/images'); ?>/<?php echo $hotel->id; ?>" class="btn btn-green">I</a>
										</td>
										<td>
											<a href="<?php echo URL('admin/deletehotel'); ?>/<?php echo $hotel->id; ?>" class="btn btn-red"><i class="ion ion-ios-trash-outline"></i></a>
										</td>
											
									</tr>
									<?php endforeach; ?>
									
								</tbody>
							</table>
						</div>
					</div>
				</div>
				<!-- /panel -->
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<ul class="pagination small-pagination pull-right">
					<?php echo $data->links(); ?>
				</ul>
			</div>
		</div>
	</div>
	<!-- /main content -->		

</div>  
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>