<?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">
         Edit - <?php echo $rooms->name; ?>

          <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')): ?>
<div class="alert bg-danger text-white">
              <?php echo Session::get('success'); ?>

            </div>

<?php endif; ?>

<?php if(Session::has('success')): ?>
<div class="alert bg-success text-white">
              <?php echo Session::get('success'); ?>

            </div>

<?php endif; ?>





      <div class="panel-body">

          <?php echo Form::open(array('route' => 'updateroom', 'id' => 'form-a', 'class' => 'form form-horizontal')); ?>
        <input type="hidden" id="hotelid" value="<?php echo $rooms->id; ?>" name="roomid" class="form-control" data-required="true" >
          <div class="form-group">
            <label class="col-sm-2 control-label" for="inline-suggestions">Room Name:</label>
            <div class="col-sm-8">
              <input name="roomname" type="text"  value="<?php echo $rooms->name; ?>" required class="form-control"  />
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-2 control-label" for="inline-suggestions">Max Adults:</label>
            <div class="col-sm-8">
              <input name="roommaxadults" type="text"  value="<?php echo $rooms->max_adults; ?>" required class="form-control"  />
            </div>
          </div>

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

                <?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="roomcategories[]" multiple='multiple'>
                <?php foreach($roomcategories as $category): ?>
                  <option value='<?php echo $category->id; ?>' selected><?php echo $category->name; ?></option>
                <?php endforeach; ?>

                <?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">Content:</label>
            <div class="col-md-10">
                <textarea id="hotelcontent" name="roomcontent"> <?php echo $rooms->description; ?></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(); ?>