<?php $__env->startSection('title'); ?>
    STAKEGAINS | Screen Shots
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page'); ?>
    Tstimonial Shots
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="col" style="min-height: 323px;;">
        <br>
        <?php
        $date = new dateTime();
        $d = $date->format('j F, Y');
        ?>
        <?php if(isset($success)): ?>
            <script>
                alert('<?php echo e($success); ?>');
            </script>
        <?php endif; ?>

        <div class="row">
            <div class="col-md-6">
                <form action="<?php echo e(url('/shotManager')); ?>" method="POST" enctype="multipart/form-data">
                    <div class="col-sm-12">
                        <div class="fileupload fileupload-new form-group col-sm-6" data-provides="fileupload">
                            <label>SCREENSHOT</label>
                            <div class="fileupload-new thumbnail" style="width: 200px; height: 150px;"><img src="<?php echo e(asset('images/shotDummy.JPG')); ?>" alt="" /></div>
                            <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 160px; max-height: 150px; line-height: 20px;"></div>
                            <div>
                                    <span class="btn btn-sm btn-file btn-default"><span class="fileupload-new">SELECT IMAGE</span><span class="fileupload-exists">Change</span>
                                     <input type="file" name="file" required/></span>
                                <a href="#" class="btn btn-sm btn-danger fileupload-exists" data-dismiss="fileupload">Remove</a>
                            </div>
                        </div>

                        <div class="form-group col-sm-6">
                            <label for="desc">SHORT STATEMENT</label>
                            <textarea name="desc" id="desc" cols="30" rows="6" class="form-control" maxlength="250"></textarea>
                        </div>

                        <?php echo csrf_field(); ?>

                        <div class="form-group">
                            <button class="btn btn-md btn-success" name="submit" id="">SAVE CAST</button>
                        </div>
                    </div>
                </form>

            </div>

            <div class="col-md-6">
                <h4>EXISTING CASTS</h4>
                <hr>
                <table class="table table-responsive">
                    <?php
                    $data = App\Shot::where('status', '0')->get()->sortByDesc('id');
                    ?>
                    <?php if(count($data)>0): ?>
                        <?php foreach($data->all() as $item): ?>
                            <tr id="munch<?php echo e($item->id); ?>">
                                <td><img src="<?php echo e($path2); ?>/munch/<?php echo e($item->path); ?>" alt="" class="img-responsive"><br><?php echo $item->desc; ?></td>
                                <td>
                                    <?php /*<?php if($item->status=='0'): ?>*/ ?>
                                    <?php /*<button class="btn btn-xs btn-warning">Hide This</button>*/ ?>
                                    <?php /*<?php else: ?>*/ ?>
                                    <?php /*<button class="btn btn-xs btn-warning">Unhidden</button>*/ ?>
                                    <?php /*<?php endif; ?>*/ ?>
                                    <button class="btn btn-xs btn-danger trashMunch" data-id="<?php echo e($item->id); ?>">Trash This</button>
                                </td>
                            </tr>
                        <?php endforeach; ?>
                    <?php else: ?>
                        <h3><center>Nothing to Show</center></h3>
                    <?php endif; ?>
                </table>

            </div>
        </div>
    </div>


<?php $__env->stopSection(); ?>

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