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


		<!-- 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">Brand:</label>
						<div class="col-sm-8">
							<select class="name_search form-control" name="hotelbrand" data-validation="required" required data-validation-error-msg="Please make a choice">
								<option value=""> - - Choose - - </option>
								<option value="">Please Select</option>
								<?php foreach($brands as $brand): ?>
								<option value="<?php echo $brand->id; ?>"><?php echo $brand->name; ?></option>
								<?php endforeach; ?>
							</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="toggle-switch">
              <label class="col-sm-2 control-label">Status:</label>
              <div class="col-sm-8">
                <input type="checkbox" id="toggle-switcha" name="hotelstatus" value="" checked>
                <div class="toggle">
                  <label for="toggle-switcha"><i></i>
                  </label>
                </div>
              </div>
            </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(); ?>