ok
Direktori : /home2/selectio/www/a1tex.in/storage/framework/views/ |
Current File : /home2/selectio/www/a1tex.in/storage/framework/views/3bd56771e4953786f2210a390c115db95059e204.php |
<?php $__env->startSection('title', \App\CPU\translate('updated_product_list')); ?> <?php $__env->startPush('css_or_js'); ?> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <div class="content container-fluid"> <!-- Page Title --> <div class="mb-3"> <h2 class="h1 text-capitalize mb-1 d-flex gap-2"> <img src="<?php echo e(asset('/public/assets/back-end/img/inhouse-product-list.png')); ?>" alt=""> <?php echo e(\App\CPU\translate('update_product')); ?> </h2> </div> <!-- End Page Title --> <div class="row mt-20"> <div class="col-md-12"> <div class="card"> <div class="px-3 py-4"> <div class="row gy-2 justify-content-between align-items-center"> <div class="col-auto"> <h5 class="mb-0"> <?php echo e(\App\CPU\translate('product_table')); ?> <span class="badge badge-soft-dark radius-50 fz-12 ml-1"><?php echo e($pro->total()); ?></span> </h5> </div> <div class="col-auto"> <!-- Search --> <form action="<?php echo e(url()->current()); ?>" method="GET"> <div class="input-group input-group-merge input-group-custom"> <div class="input-group-prepend"> <div class="input-group-text"> <i class="tio-search"></i> </div> </div> <input id="datatableSearch_" type="search" name="search" class="form-control" placeholder="<?php echo e(\App\CPU\translate('Search Product Name')); ?>" aria-label="Search orders" value="<?php echo e($search); ?>" required> <button type="submit" class="btn btn--primary"><?php echo e(\App\CPU\translate('search')); ?></button> </div> </form> <!-- End Search --> </div> </div> </div> <div class="table-responsive"> <table id="datatable" style="text-align: <?php echo e(Session::get('direction') === "rtl" ? 'right' : 'left'); ?>;" class="table table-hover table-borderless table-thead-bordered table-nowrap table-align-middle card-table w-100"> <thead class="thead-light thead-50 text-capitalize"> <tr> <th><?php echo e(\App\CPU\translate('SL')); ?></th> <th><?php echo e(\App\CPU\translate('Product Name')); ?></th> <th><?php echo e(\App\CPU\translate('previous_shipping_cost')); ?></th> <th><?php echo e(\App\CPU\translate('new_shipping_cost')); ?></th> <th class="text-center"><?php echo e(\App\CPU\translate('Action')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $pro; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <th scope="row"><?php echo e($pro->firstItem()+$k); ?></th> <td> <a href="<?php echo e(route('admin.product.view',[$p['id']])); ?>" class="title-color hover-c1"> <?php echo e(\Illuminate\Support\Str::limit($p['name'],20)); ?> </a> </td> <td> <?php echo e(\App\CPU\BackEndHelper::set_symbol(\App\CPU\BackEndHelper::usd_to_currency($p['shipping_cost']))); ?> </td> <td> <?php echo e(\App\CPU\BackEndHelper::set_symbol(\App\CPU\BackEndHelper::usd_to_currency($p['temp_shipping_cost']))); ?> </td> <td> <div class="d-flex gap-10 align-items-center justify-content-center"> <button class="btn btn--primary btn-sm" onclick="update_shipping_status(<?php echo e($p['id']); ?>,1)"> <?php echo e(\App\CPU\translate('approved')); ?> </button> <button class="btn btn-danger btn-sm" onclick="update_shipping_status(<?php echo e($p['id']); ?>,0)"> <?php echo e(\App\CPU\translate('deneid')); ?> </button> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <div class="table-responsive mt-4"> <div class="px-4 d-flex justify-content-lg-end"> <!-- Pagination --> <?php echo e($pro->links()); ?> </div> </div> <?php if(count($pro)==0): ?> <div class="text-center p-4"> <img class="mb-3 w-160" src="<?php echo e(asset('public/assets/back-end')); ?>/svg/illustrations/sorry.svg" alt="Image Description"> <p class="mb-0"><?php echo e(\App\CPU\translate('No data to show')); ?></p> </div> <?php endif; ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <script> function update_shipping_status(product_id,status) { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }); $.ajax({ url: "<?php echo e(route('admin.product.updated-shipping')); ?>", method: 'POST', data: { product_id: product_id, status:status }, success: function (data) { toastr.success('<?php echo e(\App\CPU\translate('status updated successfully')); ?>'); location.reload(); } }); } </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.back-end.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/selectio/public_html/a1tex.in/resources/views/admin-views/product/updated-product-list.blade.php ENDPATH**/ ?>