Viewing file: 7e978e604484209b2d1430d65567a1fe.php (8.29 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('Orders')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="container mt-5 mb-5"> <div class="row"> <div class="col-12"> <!-- Page Title--> <div class="page-title"> <div class="container"> <div class="row"> <div class="col-lg-12"> <ul class="breadcrumbs"> <li><a href="<?php echo e(route('front.index')); ?>"><?php echo e(__('Home')); ?></a></li> <li class="separator"></li> <li><?php echo e(__('Orders')); ?></li> </ul> </div> </div> </div> </div> <!-- Page Content--> <div class="container-fluid padding-bottom-3x mb-1"> <div class="row"> <?php echo $__env->make('includes.user_sitebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="col-lg-9 col-12 new_user_profile mt-3"> <div class="card"> <div class="card-body"> <div class="u-table-res"> <table class="table table-bordered mb-0"> <thead> <tr> <th><?php echo e(__('Total Price')); ?></th> <th><?php echo e(__('Order Status')); ?></th> <th><?php echo e(__('Payment Status')); ?></th> <th><?php echo e(__('Payment Method')); ?></th> <th><?php echo e(__('Date Purchased')); ?></th> <th><?php echo e(__('Transactions ID')); ?></th> <th><?php echo e(__('Action')); ?></th> </tr> </thead> <tbody> <?php if($orders->isNotEmpty()): ?> <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(PriceHelper::grandCurrencyPrice($order->total_price)); ?></td> <td> <?php echo e($order->order_status); ?>
</td> <td><?php echo e($order->payment_status); ?></td> <td><?php echo e($order->payment_method); ?></td> <td><?php echo e($order->created_at->format('D/M/Y')); ?></td> <td><?php echo e($order->txn_id); ?></td> <td> <div class="btn-group"> <button type="button" class="btn btn-info btn-sm" data-bs-toggle="dropdown" aria-expanded="false"> <i class="fa fa-ellipsis-v"></i> </button> <ul class="dropdown-menu" style=""> <li> <a class="dropdown-item" href="<?php echo e(route('user.order.detail',[$order->id])); ?>">Details</a> </li> <?php if($order->order_status=='SELLING'): ?> <li><a class="dropdown-item disabled" disabled="disabled" href="#">Selling</a></li> <?php elseif($order->order_status=='SOLD'): ?> <li><a class="dropdown-item disabled" disabled="disabled" href="#">Sold</a></li> <?php else: ?> <li><a class="dropdown-item resellOrder" data-id="<?php echo e($order->id); ?>" href="#">Sell</a></li> <?php endif; ?> </ul> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr class="text-center"> <td colspan="7" class="p-4">No Data Available</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div>
</div> </div> </div> </div> </div> </div>
<!-- Modal --> <div class="modal fade" id="resellModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <form action="<?php echo e(route('user.sell.order')); ?>" method="post"> <?php echo csrf_field(); ?>
<div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle">Confirm</h5> <button type="button" class="close btn" data-bs-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <input type="hidden" name="order_id" class="order_id">
<h5>Are you sure you want to sell this order?</h5> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary close" data-bs-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary">Confirm</button> </div>
</form> </div> </div> </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script> $(document).on('click', '.resellOrder', function (e){ e.preventDefault(); const order_id=$(this).attr('data-id');
$('.order_id').val(order_id)
$('#resellModal').modal('show');
}) </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/game.picotech.app/public_html/core/resources/views/user/order/index.blade.php ENDPATH**/ ?>
|