<?php $__env->startSection('content'); ?>
<div class="content" id="content">

	<div class="overlay"></div>			
	
	<div class="top-bar">
	<nav class="navbar navbar-default top-bar">
		<div class="menu-bar-mobile" id="open-left"><i class="ti-menu"></i>
		</div>

		<ul class="nav navbar-nav navbar-right top-elements">
			<li class="piluku-dropdown dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><img class="flag_img" src="assets/images/flags/india-flag.jpg" alt=""> English<span class="drop-icon"><i class="ion ion-chevron-down"></i></span>
				</a>
				<ul class="dropdown-menu dropdown-piluku-menu  animated fadeInUp wow language-drop neat_drop" data-wow-duration="1500ms" role="menu">
					<li>
						<a href="#"><img class="flag_img" src="assets/images/flags/gm.gif" alt="flags"> German</a>
					</li>
					<li>
						<a href="#"><img class="flag_img" src="assets/images/flags/usa.png" alt="flags"> Spanish</a>
					</li>
					<li>
						<a href="#"><img class="flag_img" src="assets/images/flags/gm.gif" alt="flags"> german</a>
					</li>
					<li>
						<a href="#"><img class="flag_img" src="assets/images/flags/gm.gif" alt="flags"> german</a>
					</li>
				</ul>
			</li>
			<li class="piluku-dropdown dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="ion-ios-bell-outline icon-notification"></i><span class="badge info-number message">22</span></a>
				<ul class="dropdown-menu dropdown-piluku-menu  animated fadeInUp wow notification-drop neat_drop dropdown-right" data-wow-duration="1500ms" role="menu">
					<li>
						<a href="profile.html">
							<div class="hexagon danger">
								<span><i class="ion-ios-alarm-outline"></i></span>
							</div>
							<span class="text_info"> Privacy settings have been changed</span>
							<span class="time_info">3:30am</span>
						</a>
					</li>
					<li>
						<a href="profile.html">
							<div class="hexagon success">
								<span><i class="ion-ios-body-outline"></i></span>
							</div>
							<span class="text_info"> Tim has added you as friend</span>
							<span class="time_info">4:30am</span>
						</a>
					</li>
					<li>
						<a href="profile.html">
							<div class="hexagon warning">
								<span><i class="ion-ios-cart-outline"></i></span>
							</div>
							<span class="text_info"> New item added</span>
							<span class="time_info">6:07am</span>
						</a>
					</li>
					<li>
						<a href="profile.html">
							<div class="hexagon info">
								<span><i class="ion-ios-calendar-outline"></i></span>
							</div>
							<span class="text_info"> reminder please complete the task</span>
							<span class="time_info">3:30pm</span>
						</a>
					</li>
					<li>
						<a href="profile.html">
							<div class="outline-hexagon">
								<span><i class="ion-ios-checkmark-outline"></i></span>
							</div>
							<span class="text_info"> Marked as complete</span>
							<span class="time_info">1:30pm</span>
						</a>
					</li>
					<li>
						<a href="profile.html" class="last_info">See all notifications</a>
					</li>

				</ul>
			</li>
			<li class="piluku-dropdown dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="ion-ios-box-outline icon-notification"></i><span class="badge info-number bell">22</span></a>
				<ul class="dropdown-menu dropdown-piluku-menu  animated fadeInUp wow message_drop neat_drop dropdown-right" data-wow-duration="1500ms" role="menu">
					<li>
						<a href="mailbox.html">
							<div class="avatar_left"><img src="assets/images/avatar.jpeg" alt=""></div>
							<div class="info_right">
								<span class="text_head pull-left">Megan fox</span>
								<span class="time_info pull-right">3:30am <i class="online ion-record"></i></span>
								<div class="text_info"> Hi want to know about the company freelance for wizard</div>
							</div>							
						</a>
					</li>
					<li>
						<a href="mailbox.html">
							<div class="avatar_left"><img src="assets/images/avatar.jpeg" alt=""></div>
							<div class="info_right">
								<span class="text_head pull-left">Megan fox</span>
								<span class="time_info pull-right">3:30am <i class="online ion-record"></i></span>
								<div class="text_info"> Hi want to know about the company freelance for wizard</div>
							</div>							
						</a>
					</li>
					<li>
						<a href="mailbox.html">
							<div class="avatar_left"><img src="assets/images/avatar.jpeg" alt=""></div>
							<div class="info_right">
								<span class="text_head pull-left">Megan fox</span>
								<span class="time_info pull-right">3:30am <i class="online ion-record"></i></span>
								<div class="text_info"> Hi want to know about the company freelance for wizard</div>
							</div>	
						</a>
					</li>
					<li>
						<a href="mailbox.html">
							<div class="avatar_left"><img src="assets/images/avatar.jpeg" alt=""></div>
							<div class="info_right">
								<span class="text_head pull-left">Megan fox</span>
								<span class="time_info pull-right">3:30am <i class="online ion-record"></i></span>
								<div class="text_info"> Hi want to know about the company freelance for wizard</div>
							</div>	
						</a>
					</li>
				</ul>
			</li>
			<li class="piluku-dropdown dropdown">
				<!-- @todo  Change design here, its bit of odd or not upto usable -->

				<a href="#" class="dropdown-toggle avatar_width" data-toggle="dropdown" role="button" aria-expanded="false"><span class="avatar-holder"><img src="assets/images/avatar.jpeg" alt=""></span><span class="avatar_info">Bootstrap</span><span class="drop-icon"><!-- <i class="ion ion-chevron-down"></i> --></span></a>
				<ul class="dropdown-menu dropdown-piluku-menu  animated fadeInUp wow avatar_drop neat_drop dropdown-right" data-wow-duration="1500ms" role="menu">
					<li>
						<a href="profile.html"> <i class="ion-android-settings"></i>Settings</a>
					</li>
					<li>
						<a href="mailbox.html"> <i class="ion-android-chat"></i>Messages</a>
					</li>
					<li>
						<a href="dropzone-file-upload.html"> <i class="ion-android-cloud-circle"></i>Upload</a>
					</li>
					<li>
						<a href="profile.html"> <i class="ion-android-create"></i>Edit profile</a>
					</li>
					<li>
						<a href="lock-screen.html" class="logout_button"><i class="ion-power"></i>Logout</a>
					</li>   
				</ul>
			</li>
			<li class="chat_btn">
				<a href="#" class="right-bar-toggle flatRed">
					<i class="ion-ios-people-outline"></i>                              
				</a>
			</li>
		</ul>

	</nav>

</div>
<!-- /top-bar -->
	
	<!-- main content -->
	<div class="main-content">


		<!-- panel -->

		<div class="panel panel-piluku">
			<div class="panel-heading">
				<h3 class="panel-title">
					Add Hotel
					<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>

<?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", "Inserted Successfully", "success");
}, false);
</script>
<?php endif; ?>





			<div class="panel-body">
				<form id="form-a" name="form-a" action="<?php echo URL('admin/inserthotel'); ?>" method="POST" role="form" 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="hoteltype" data-validation="required" required data-validation-error-msg="Please make a choice">
								<option value=""> - - Choose - - </option>
								<option value="">Please Select</option>
			                    <option value="resort">resort</option>
			                    <option value="guesthouse">guesthouse</option>
			                    <option value="cruise">cruise</option>
			                    <option value="cityhotel">cityhotel</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="hotelname" type="text"  required class="form-control"  />
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label" for="inline-suggestions">Hotel Slug(SEO)</label>
						<div class="col-sm-8">
							<input name="hotelslug" type="text"  required class="form-control"  />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="inline-suggestions">Hotel Title(SEO)</label>
						<div class="col-sm-8">
							<input name="hoteltitle" type="text" required class="form-control"  />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="inline-suggestions">Meta Keywords(SEO)</label>
						<div class="col-sm-8">
							<input name="hotelmetakeywords" type="text" required class="form-control"  />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="inline-suggestions">Meta Description(SEO)</label>
						<div class="col-sm-8">
							<input name="hotelmetadescription" type="text" required class="form-control"  />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="inline-suggestions">Address:</label>
						<div class="col-sm-8">
							<input name="hoteladdress" type="text" required class="form-control"  />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="inline-suggestions">Geo Cordinates:</label>
						<div class="col-sm-8">
							<input name="hotelgeocordinates" type="text" required class="form-control"  />
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">Rating:</label>
						<div class="col-sm-8">
							<select class="name_search form-control" required name="hotelrating" data-validation="required" data-validation-error-msg="Please make a choice">
								<option value=""> - - Choose - - </option>
			                    <option value="7">7</option>
			                    <option value="6">6</option>
			                    <option value="5">5</option>
			                    <option value="4">4</option>
			                    <option value="3">3</option>
			                    <option value="2">2</option>
			                    <option value="1">1</option>

							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">Facilities:</label>
						<div class="col-md-6">
							<!-- xmulti select  -->
								<select id='hotelfacilities' name="hotelfacilities[]"  multiple='multiple'>
								<?php foreach($facilities as $facility): ?>
									<option value='<?php echo $facility->id; ?>'><?php echo $facility->name; ?></option>
								<?php endforeach; ?>
								</select>
								<!-- xmulti select  -->

						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">Categories:</label>
						<div class="col-md-8">
							<!-- xmulti select  -->
								<select id='hotelcategories' name="hotelcategories[]" multiple='multiple'>
								<?php foreach($categories as $category): ?>
									<option value='<?php echo $category->id; ?>'><?php echo $category->name; ?></option>
								<?php endforeach; ?>
								</select>
								<!-- xmulti select  -->

						</div>
					</div>

					<div class="form-group">
			            <label class="col-sm-2 control-label">Activities:</label>
			            <div class="col-md-8">
			              <!-- xmulti select  -->
			                <select id='hotelactivities' name="hotelactivities[]"  multiple='multiple'>
			                <?php foreach($activities as $activity): ?>
			                  <option value='<?php echo $activity->id; ?>'><?php echo $activity->seo_title; ?></option>
			                <?php endforeach; ?>
			                </select>
			                <!-- xmulti select  -->

			            </div>
			        </div>


					<div class="form-group">
					<label class="col-sm-2 control-label">Content:</label>
					<div class="col-md-10">
					<textarea id="hotelcontent" name="hotelcontent"></textarea>
					</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>
</div>
<!-- /panel -->

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