Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mcoil.corals.io/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/storage/framework/views/210677de8f278b70cd0ba2889db4d5ed.php
<?php if(count($products) >0): ?>
    <table class="table table-striped table-hover table-checkable dataTable table-responsive table-responsive-md responsive" id="order_table">
        <thead class="thead-dark">
        <tr>
            <th scope="col" class="all">ID</th>
            <th scope="col" class="min-tablet-l">Image</th>
            <th scope="col" class="min-mobile-l">Name</th>
            <th scope="col" class="min-tablet-l">Quantity</th>
            <th scope="col" class="min-mobile-l">Price</th>
            <th scope="col" class="min-tablet-l">Status</th>
            <th scope="col" class="min-mobile-l"></th>
        </tr>
        </thead>
        <tbody>
        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td class="dtr-control"><?php echo e($product->id); ?></td>
                <td>
                    <?php if(isset($product->cover)): ?>
                        <img src="<?php echo e(URL::asset('/public/storage/'.$product->cover)); ?>" alt="" class="img-responsive img-thumbnail product-list-image img-products" />
                    <?php else: ?>
                        <img src="<?php echo e(url('/images/default.jpg')); ?>" class="img-responsive img-thumbnail product-list-image img-products" alt="" />
                    <?php endif; ?>
                </td>
                <td>
                    <?php if($admin->hasPermission('view-product')): ?>
                        <a href="<?php echo e(route('admin.products.edit', $product->id)); ?>"><?php echo e($product->name); ?></a>
                    <?php else: ?>
                        <?php echo e($product->name); ?>

                    <?php endif; ?>
                </td>
                <td <?php if($product->quantity <= 0): ?>class="redbg"<?php endif; ?>><?php echo e($product->quantity); ?></td>
                <td><?php echo e(config('cart.currency_symbol')); ?><?php echo e($product->price); ?></td>
                <td><span class="badge font-badge <?php if($product->status != '1'): ?> badge-danger <?php else: ?> badge-success <?php endif; ?>"><?php if($product->status != '1'): ?> disabled <?php else: ?> enabled <?php endif; ?></span></td>
                <td>
                    <form action="<?php echo e(route('admin.products.destroy', $product->id)); ?>" method="post" id="remove-from-form" class="form-horizontal">
                        <input type="hidden" name="id" value="<?php echo e($product->id); ?>">
                        <?php echo e(csrf_field()); ?>

                        <input type="hidden" name="_method" value="delete">
                        <div class="btn-group">
						    <?php if($admin->hasPermission('update-product')): ?><a href="<?php echo e(route('admin.products.edit', $product->id)); ?>" class="btn btn-dark"><i class="fa fa-pencil"></i> Edit</a><?php endif; ?>
						    <?php if($admin->hasPermission('delete-product')): ?><button id="<?php echo e($product->id); ?>" type="submit" class="btn btn-danger delete_submit" <?php if($product->id == '13' || $product->id == '14'): ?>disabled="disabled"<?php endif; ?>><i class="fa fa-times"></i> Delete</button><?php endif; ?>
						</div>
                    </form>
                </td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
<?php endif; ?>
<?php $__env->startSection('stylesheets'); ?>
<link href="<?php echo e(asset('css/sweetalert2.min.css')); ?>" rel="stylesheet" type="text/css" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script src="<?php echo e(asset('js/sweetalert2.all.min.js')); ?>"></script>
<script type="text/javascript">
$(document).ready( function () {
    $.fn.DataTable.ext.pager.numbers_length = 5;
    $('#order_table').DataTable({
		"responsive": true,
		"order": [[ 2, "asc" ]],
        "bAutoWidth": false,
        "rowReorder": {
            selector: 'td:nth-child(2)'
        },
        "columnDefs": [
          { "width": "130px", "targets": 6 }
        ]
	});
	$(document).on('click', '.delete_submit', function(e) {
        var refer = $(this).attr("id");
		var step_remove_url = $(this).closest("#remove-from-form").attr('action');
		e.preventDefault();
		e.stopPropagation();
		if (refer != '') {
			Swal.fire({
                title: 'Are you sure?',
                text: "You won't be able to revert this!",
    	        type: 'warning',
    	        showCancelButton: true,
                confirmButtonColor: '#3085d6',
    	        cancelButtonColor: '#d33',
    	        confirmButtonText: 'Yes, delete it!'
            }).then((result) => {
    	        if (result.value) {
    	            Swal.fire({
                        title: 'Deleted!',
            	        text: "Your product has been deleted.",
            	        type: 'success',
                        showConfirmButton: false,
                        timer: 1500
    	            });
                    $.ajax({
    			        url: step_remove_url,
    			        method: "POST",
        		        data: {
        		        	"_token": "<?php echo e(csrf_token()); ?>",
        		        	"_method": "delete",
    			        	id: refer
        		        },
        		        success:function(response){
    			            setTimeout(function(){
                                window.location.reload();
                            }, 1500);
    			        }
    			    });
                }
            });
        }
    });
});
</script>
<?php $__env->stopSection(); ?><?php /**PATH /home/corals/mcoil.corals.io/resources/views/admin/shared/products.blade.php ENDPATH**/ ?>

Spamworldpro Mini