<?php $__env->startSection('content'); ?>
<div id="window_galleryIndex" class="page-window active-window">
  <div class="page-title">
    <i class="icon-custom-left"></i>
      <h3><?php echo e(trans('resource.upload.title')); ?> - <span class="semi-bold"><?php echo e(trans('resource.upload.gallery')); ?></span></h3>
  </div>
  <div class="page-title">
    <a href="/admin/gallery/basic"><?php echo e(trans('resource.upload.image')); ?></a> /
    <a href="/admin/gallery/thumbnail"><?php echo e(trans('resource.upload.thumbnail')); ?></a>
    <div class="control-group">
      <label class="control-label"><?php echo e(trans('resource.upload.name')); ?></label>
      <div class="controls">
        <input class="span12 " type="text" name="superboxname">
      </div>
    </div>
  </div>
  <div class="superbox" style="background: #fff;">
				<?php $__currentLoopData = $model; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
          <div class="superbox-list"><!--
          --><img img-name="<?php echo e($item->name); ?>" src="<?php echo e($item->path); ?>" data-img="<?php echo e($item->path); ?>" alt="" class="superbox-img"/>
          </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
				<div class="superbox-float"></div>
	</div>
</div>
<script type="text/javascript">
  $(document).ready(function(){
    $('.superbox').SuperBox();
    $('.superbox-img').click(function(){
        $('input[name="superboxname"]').val($(this).attr("src"));
    });
  });
</script>
<?php $__env->stopSection(); ?>

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