<?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">

<?php if(Session::has('error')): ?>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
    swal("Failed", "something went wrong", "error");
}, false);
</script>
<?php endif; ?>

<?php if(Session::has('success')): ?>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
    swal("Thank You", "Operation Succesful!", "success");
}, false);
</script>
<?php endif; ?>


		<!--row-->
		<div class="row">
			<!--                   col-md-12-->
			<div class="col-md-12">
				<!--                        *** Tabs Justified With Border ***-->
				<div class="panel panel-piluku">
					<div class="panel-heading">
						<h3 class="panel-title">
							Facilities Management
						</h3>
					</div>
					<div class="panel-body">
						<div role="tabpanel">
							<!-- Nav tabs -->
							<ul class="nav nav-tabs nav-justified piluku-tabs" role="tablist">
								<li role="presentation" class="active"><a href="#hometab" aria-controls="home" role="tab" data-toggle="tab">Hotel Facilities</a></li>
								<li role="presentation"><a href="#profiletab" aria-controls="profile" role="tab" data-toggle="tab">Room Facilities</a></li>
							</ul>
							<!-- Tab panes -->
							<div class="tab-content piluku-tab-content">
								<div role="tabpanel" class="tab-pane active" id="hometab">
								<!--theme panel-->

						        <!--form-heading-->
	<?php echo Form::open(array('route' => 'insertfacility', 'id' => 'form-a', 'class' => 'form form-horizontal')); ?>
					<div class="form-group">
						<label class="col-sm-2 control-label">Type:</label>
						<div class="col-sm-8">
							<select class="name_search form-control" name="facilitiestype" data-validation="required" required data-validation-error-msg="Please make a choice">
								<option value=""> - - Choose - - </option>
			                    <option value="1">Hotel</option>
			                    <option value="2">Room</option>
							</select>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label" for="inline-suggestions">Name:</label>
						<div class="col-sm-8">
							<input name="facilitiesname" type="text"  required class="form-control"  />
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label" for="inline-suggestions">Class:</label>
						<div class="col-sm-8">
							<input name="facilitiesclass" type="text"  required class="form-control"  />
						</div>
					</div>

					





					
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-8">
					<input type="submit" class="btn btn-success">
					<input type="reset" class="btn btn-danger">
				</div>
			</div>
						         
						        </form>

						        <div class="row">
			<div class="col-md-12">
				<!-- panel -->
				<div class="panel panel-piluku panel-users">
					<div class="panel-heading">
						<h3 class="panel-title">
							Hotel Facilities
							<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>&nbsp;</th>
									
									</tr>
								</thead>
								<tbody>
								     <?php foreach($hfacilities as $facility): ?>
									<tr class="table-row">
										<td>
											<i class="fa fa-list"></i>
										</td>
						                <td><?php echo $facility->name; ?></td>

										<td>
											<a href="<?php echo URL('admin/settings/facilities/delete'); ?>/<?php echo $facility->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>
 
    <!--theme panel-->

								</div>
								<div role="tabpanel" class="tab-pane" id="profiletab">

								  <!--form-heading-->
						        	<?php echo Form::open(array('route' => 'insertfacility', 'id' => 'form-a', 'class' => 'form form-horizontal')); ?>
					<div class="form-group">
						<label class="col-sm-2 control-label">Type:</label>
						<div class="col-sm-8">
							<select class="name_search form-control" name="facilitiestype" data-validation="required" required data-validation-error-msg="Please make a choice">
								<option value=""> - - Choose - - </option>
			                    <option value="1">Hotel</option>
			                    <option value="2">Room</option>
							</select>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label" for="inline-suggestions">Name:</label>
						<div class="col-sm-8">
							<input name="facilitiesname" type="text"  required class="form-control"  />
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label" for="inline-suggestions">Class:</label>
						<div class="col-sm-8">
							<input name="facilitiesclass" type="text"  required class="form-control"  />
						</div>
					</div>

					





					
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-8">
					<input type="submit" class="btn btn-success">
					<input type="reset" class="btn btn-danger">
				</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">
							Room Facilities
							<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>&nbsp;</th>
									
									</tr>
								</thead>
								<tbody>
								     <?php foreach($rfacilities as $facility): ?>
									<tr class="table-row">
										<td>
											<i class="fa fa-list"></i>
										</td>
						                <td><?php echo $facility->name; ?></td>

										<td>
											<a href="<?php echo URL('admin/settings/facilities/delete'); ?>/<?php echo $facility->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>
				
							</div>
						</div>
					</div>
				</div>
				<!--                        *** /Tabs Justified With Border ***-->
				<!-- /panel -->
			</div>
			<!--                    /col-md-12-->
		</div>
		<!-- /row -->
		<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(); ?>