Anons79 Mini Shell

Directory : /home/proudlyafrican/www/storage/framework/views/
Upload File :
Current File : /home/proudlyafrican/www/storage/framework/views/31732e12130f27791efe83ef265d77477afe55a6.php

<?php $__env->startSection('middle'); ?>
<section class="content">
    <?php if(Session::has('msg')): ?>
    <div class="alert alert-success" id="success-alert">
        <button type="button" class="close" data-dismiss="alert">x</button>
        <p  align="center" style="font-weight: bold; font-size: 13px; color: white"> Success: <?php echo e(Session::get('msg')); ?> </p>
    </div>
    <br>
    <?php endif; ?>

    <?php if(Session::has('msg2')): ?>

    <div class="alert alert-danger" id="success-alert">
        <button type="button" class="close" data-dismiss="alert">x</button>
        <p  align="center" style="font-weight: bold; font-size: 13px; color: white"> Success: <?php echo e(Session::get('msg2')); ?> </p>
    </div>
    <br>
    <?php endif; ?>


    <a href="<?php echo e(url('add_gallery')); ?>"><button class="btn btn-primary" style="float: right"><i class="glyphicon glyphicon-plus"></i>Add New Album</button></a>


    <div class="row">
        <div class="col-xs-12">

            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Album List</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <table id="example1" class="table table-bordered table-striped">
                        <thead>
                        <tr>
                            <th>SR #</th>
                            <th>Title</th>
                            <th>Total Images</th>
                            <th>Cover Image</th>
                            <th>Edit/Delete Images</th>
                            <th>Action</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php $count=1; ?>
                        <?php $__currentLoopData = $galleries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gallery): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($count); ?></td>
                            <td><?php echo e($gallery->title); ?></td>
                            <?php 
                            $images_count = DB::table('galleries_attachments')->where('gallery_id',$gallery->gallery_id)->get();
                             ?>

                            <?php 
                            $images = DB::table('galleries_attachments')->where('gallery_id',$gallery->gallery_id)->take(1)->get();
                             ?>
                            <td><span style="font-weight: bold; color: #0000ff"><?php echo e(count($images_count)); ?></span></td>
                            <td>
                                <?php if(count($images)>0): ?>
                                    <?php if($images[0]->type=='Image'): ?>
                                    <img style="width: 150px; width: 150px" src="<?php echo e(url('public/uploads/gallery')); ?>/<?php echo e($images[0]->image_name); ?>">
                                    <?php else: ?>
                                    <video width="200" height="120" controls>
                                        <source src="<?php echo e(url('public/uploads/gallery')); ?>/<?php echo e($images[0]->image_name); ?>" type="video/mp4">
                                    </video>
                                    <?php endif; ?>
                                <?php endif; ?>
                            </td>
                            <td style="width: 15%;">
                                <a  style="margin: 5px;" href="<?php echo e(url('edit_gallery_images')); ?>/<?php echo e($gallery->gallery_id); ?>" class="btn btn-primary"><i class="glyphicon glyphicon-eye-open"></i></a>
                            </td>
                            <td style="width: 20%">

                                <a  style="margin: 5px;" href="<?php echo e(url('edit_gallery')); ?>/<?php echo e($gallery->gallery_id); ?>" class="btn btn-primary"><i class="glyphicon glyphicon-pencil"></i></a>
                                <a data-toggle="modal" data-target="#confirm-delete" data-href="<?php echo e(url('delete_gallery')); ?>/<?php echo e($gallery->gallery_id); ?>" class="btn btn-danger"><i class="glyphicon glyphicon-trash"></i></a>
                            </td>
                        </tr>
                        <?php  $count=$count+1; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                        </tbody>

                    </table>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
</section>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script>
    $(document).ready(function(){

        $('.stock_checkbox').on('change',function(){
            var value=$(this).val();
            if ($(this).prop('checked')) {
                $.get("<?php echo e(url('product_is_in_stock')); ?>"+'/'+value,function(response){

                });
            }
            else {
                $.get("<?php echo e(url('product_not_in_stock')); ?>"+'/'+value,function(response){

                });
            }
        });
    });
</script>

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

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]