<?php $__env->startSection('content'); ?>
<script type="text/javascript">

$(document).ready ( function(){
       $.howl ({
      type: $(this).data ('type')
      , title: 'Howl Message'
      , content: 'Lorem ipsum dolor sit amet, consect adipisicing elit.'
      , sticky: $(this).data ('sticky')
      , lifetime: 7500
      , iconCls: $(this).data ('icon')
    });
});​
</script>


<div class="content">

    <div class="content-container">

      

      <div class="content-header">
        <h2 class="content-header-title">Room Gallery( <?php echo $hotel->name; ?> )</h2>
        <ol class="breadcrumb">
          <li><a href="index-2.html">Home</a></li>
          <li><a href="javascript:;">Hotel</a></li>
          <li class="active">Gallery</li>
        </ol>
      </div> <!-- /.content-header -->
<?php echo Form::open(array('url'=>'admin/insertimage','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="category" id="category" class="form-control select2-input" data-required="true">
                    <option value="">Please Select</option>
                    <option value="gallery">Gallery</option>
                    <option value="slides">Slides</option>
                  </select>
                </div>
                 <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">Name</label>
                  <input type="text" id="name" name="name" class="form-control" data-required="true" >
                </div>
                <div class="form-group">
                  <label for="name">Description</label>
                  <input type="text" id="description" name="description" class="form-control" data-required="true" >
                </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-striped table-bordered media-table">
            <thead>
                <tr>
                    <th style="width: 150px">Image</th>
                    <th>Description</th>
                    <th>Date</th>
                    <th>File info</th>
                    <th class="text-center">Actions</th>
                </tr>
            </thead>
            
            <tbody>
<?php foreach($data as $img): ?>
              <tr>
                <td>
                  <div class="thumbnail">
                    <div class="thumbnail-view">
                      <a class="thumbnail-view-hover ui-lightbox" href="<?php echo URL('thumb/s?img='.$img->file.''); ?>">
                      </a>

                      <img src="<?php echo URL('thumb/s?img='.$img->file.''); ?>" width="125" alt="Gallery Image">
                    </div>
                  </div> <!-- /.thumbnail -->
                </td>

                <td><a href="javascript:;" title=""><?php echo $img->tags; ?></a>
                  <p><?php echo $img->description; ?></p>
                </td>
                <td>Feb 12, 2012. 12:28</td>
                <td class="file-info">
                  <span><strong>Size:</strong> 215 Kb</span> <br>
                  <span><strong>Format:</strong> .jpg</span> <br>
                  <span><strong>Dimensions:</strong> 120 x 120</span>
                </td>
                <td class="text-center">
                  <button class="btn btn-xs btn-primary"><i class="fa fa-pencil"></i></button>
                  &nbsp;
                  <button class="btn btn-xs btn-secondary"><i class="fa fa-times"></i></button>
                </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(); ?>