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

    <div class="content-container">

      

      <div class="content-header">
        <h2 class="content-header-title">Add Hotels</h2>
        <ol class="breadcrumb">
          <li><a href="index-2.html">Home</a></li>
          <li><a href="javascript:;">Data Elements</a></li>
          <li class="active">Add Hotel</li>
        </ol>
      </div> <!-- /.content-header -->

      

      <div class="row">

        <div class="col-sm-12">

          <div class="portlet">

            <div class="portlet-header">

              <h3>
                <i class="fa fa-tasks"></i>
                Add Hotels
              </h3>

            </div> <!-- /.portlet-header -->

            <div class="portlet-content">

       <?php echo Form::open(array('url'=>'admin/inserthotel','files'=>true)); ?>


<?php if(Session::has('error')): ?>
    <div class="alert alert-danger">
        <a class="close" data-dismiss="alert" href="#" aria-hidden="true">×</a>
        <strong>Oh snap!</strong> <?php echo Session::get('error'); ?>

      </div>
<?php endif; ?>
<?php if(Session::has('success')): ?>
    <div class="alert alert-success">
        <a class="close" data-dismiss="alert" href="#" aria-hidden="true">×</a>
        <strong>WOW!</strong> <?php echo Session::get('success'); ?>

      </div>
<?php endif; ?>
                <div class="form-group">  
                  <label for="validateSelect">Category</label>
                  <select name="hotelcategory" id="hotelcategory" class="form-control select2-input" data-required="true">
                    <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 class="form-group">
                  <label for="name">Name</label>
                  <input type="text" id="hotelname" name="hotelname" class="form-control" data-required="true" >
                </div>

                 <div class="form-group">
                  <label for="name">Hotel Slug(SEO)</label>
                  <input type="text" id="hotelslug" name="hotelslug"  class="form-control" data-required="true" >
                </div>

                 <div class="form-group">
                  <label for="name">Hotel Title(SEO)</label>
                  <input type="text" id="hoteltitle" name="hoteltitle" class="form-control" data-required="true" >
                </div>
                 <div class="form-group">
                  <label for="name">Meta Keywords(SEO)</label>
                  <input type="text" id="hotelkeywords" name="hotelkeywords" class="form-control" data-required="true" >
                </div>

                   <div class="form-group">
                  <label for="name">Meta Description(SEO)</label>
                  <input type="text" id="hoteldescription" name="hoteldescription" class="form-control" data-required="true" >
                </div>

  
                  <div class="form-group">
                  <label for="name">Address</label>
                  <input type="text" id="hoteladdress" name="hoteladdress" class="form-control" data-required="true" >
                </div>
                  <div class="form-group">
                  <label for="name">Geo Cordinates</label>
                  <input type="text" id="hotelgeocordinates" name="hotelgeocordinates" class="form-control" data-required="true" >
                </div>

                  <div class="form-group">  
                  <label for="validateSelect">Location</label>
                  <select name="hotellocation"  id="hotellocation" class="form-control select2-input" data-required="true">
                    <option value="">Please Select</option>
                    <?php foreach($data as $location): ?>
                    <option value="<?php echo $location->id; ?>"><?php echo $location->atoll; ?>.<?php echo $location->name; ?></option>
                    <?php endforeach; ?>
                  </select>
                </div>
          
                  <div class="form-group">  
                  <label for="validateSelect">Rating</label>
                  <select name="hotelrating" id="hotelrating" class="form-control select2-input" data-required="true">
                    <option value="">Please Select</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                  </select>
                  </div>

                  <div class="portlet">

        <div class="portlet-header">

          <h3>
            <i class="fa fa-location-arrow"></i>
            Content
          </h3>

        </div> <!-- /.portlet-header -->

        <div class="portlet-content">

          <div class="row">
   
            <div class="col-sm-12">
              <label>Content</label>
              <textarea name="hotelcontent" id="hotelcontent" class="form-control autosize-animate" rows="50" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 74px;"></textarea>
            </div> <!-- /.col -->
        </div> <!-- /.row -->       

        <div class="row">
   
            <div class="col-sm-12">
              <label>Facilities</label>
              <textarea name="hotelfacilities" id="hotelfacilities" class="form-control autosize-animate" rows="3" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 74px;"></textarea>
            </div> <!-- /.col -->
        </div> <!-- /.row -->         

        </div> <!-- /.portlet-content -->

      </div>

      





                    <div class="fileupload fileupload-new" data-provides="fileupload">
                  <div class="fileupload-new thumbnail" style="width: 200px; height: 150px;"><img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&amp;text=no+image" alt="Placeholder"></div>
                  <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 200px; max-height: 150px; line-height: 20px;"></div>
                  <div>
                    <span class="btn btn-default btn-file"><span class="fileupload-new">Select Thumbnail</span><span class="fileupload-exists">Change</span><input name="file" id="file" type="file"></span>
                    <a href="#" class="btn btn-default fileupload-exists" data-dismiss="fileupload">Remove</a>
                  </div>
                    </div>



                <div class="form-group">
                  <button type="submit" class="btn btn-primary">Add</button>
                </div>

              </form>

            </div> <!-- /.portlet-content -->

          </div> <!-- /.portlet -->

        </div> <!-- /.col -->

      </div> <!-- /.row -->


        

    </div> <!-- /.content-container -->
      
  </div> <!-- /.content -->
<?php $__env->stopSection(); ?>


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