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

    <div class="content-container">

      

      <div class="content-header">
        <h2 class="content-header-title">Room Management( <?php echo $hotel->name; ?> )</h2>
        <ol class="breadcrumb">
          <li><a href="index-2.html">Home</a></li>
          <li><a href="javascript:;">Hotels</a></li>
          <li class="active">Rooms</li>
        </ol>
      </div> <!-- /.content-header -->
<?php echo Form::open(array('url'=>'admin/insertroom','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="name">File Name</label>
                   <input type="hidden" id="hotelid" value="<?php echo $hotelid; ?>" name="hotelid" class="form-control" data-required="true" >
                  <input type="text" id="filename" name="filename" class="form-control" data-required="true" >
                </div>
                <div class="form-group">
                  <label for="name">Room Name</label>
                  <input type="text" id="name" name="name" class="form-control" data-required="true" >
                </div>
               <div class="form-group">
                <label for="textarea-input">Textarea</label>
                <textarea name="description" id="description" cols="10" rows="3" class="form-control"></textarea>
              </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">Upload</button>
                </div>

              </form>

      <h4 class="heading">Table Gallery</h4>

      <div class="row">

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

          <div class="table-responsive">

  <table class="table table-bordered">
            <thead>
              <tr>
                <th>#</th>
                <th>Name</th>
                <th>Address</th>
                <th>rating</th>
                <th>Status</th>
              </tr>
            </thead>
            <tbody>

            <?php foreach($data as $room): ?>
              <tr>
                <td>1</td>
                <td><?php echo $room->name; ?></td>
                <td><?php echo $room->name; ?></td>
                <td><?php echo $room->name; ?></td>
                <td>
                  <a href="<?php echo URL('admin/editroom'); ?>/<?php echo $room->id; ?>"> <span class="label label-secondary">Edit</span></a>
                  <a href="<?php echo URL('admin/room/images'); ?>/<?php echo $room->id; ?>"> <span class="label label-success">Images</span></a>
                  <a href="hello"> <span class="label label-primary">Delete</span></a>
                </td>
              </tr>
              <?php endforeach; ?>
             
            </tbody>
          </table>

          </div> <!-- /.table-responsive -->


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

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



      <br>





      <br>


        

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


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