<?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/offers/add'); ?>" class="btn btn-primary">Add New Offer</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 Offers
							<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>Start</th>
						                <th>Expiry</th>
						                <th>&nbsp;</th>
										<th>&nbsp;</th>
										<th>&nbsp;</th>
										<th>&nbsp;</th>
										<th>&nbsp;</th>
									
									</tr>
								</thead>
								<tbody>
								     <?php foreach($deals as $deal): ?>
									<tr class="table-row">
										<td>
											<img src="<?php echo URL('/media/uploads/images/hotel/size/263x197/'.$deal->featured_image.''); ?>" alt="user">
										</td>
						                <td><?php echo $deal->name; ?></td>
						                <td>
						                <?php echo $deal->start_date; ?>

						                </td>
						                <td>
						                <?php echo $deal->expiry_date; ?>

						                </td>

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

										</td>
										<td>
											
										</td>
										<td>
											
										</td>
										<td>
											
										</td>
										<td>
											<a href="<?php echo URL('admin/offers/delete'); ?>/<?php echo $deal->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">
					
				</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(); ?>