관리-도구
편집 파일: 5feb81d6a449f644d50acdc09414c7d5.php
<?php $__env->startSection('title', translate('my_Order_List')); ?> <?php $__env->startSection('content'); ?> <div class="container py-2 py-md-4 p-0 p-md-2 user-profile-container px-5px"> <div class="row"> <?php echo $__env->make('web-views.partials._profile-aside', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> <section class="col-lg-9 __customer-profile customer-profile-wishlist px-0"> <div class="d-flex align-items-center justify-content-between gap-2 flex-wrap mb-10px px-2 px-xl-0"> <div class="d-flex align-items-center justify-content-between gap-2"> <h5 class="mb-0 fs-16"><?php echo e(translate('my_Order')); ?></h5> </div> <div class="d-flex align-items-center gap-2 border rounded py-1 px-3"> <i class="fi fi-rr-bars-filter"></i> <?php $currentOrder = request('order_by'); ?> <select name="filter" id="orderFilter" class="bg-transparent outline-0 fs-14 w-auto border-0 p-0"> <option value="<?php echo e(route('account-oder', ['order_by' => 'desc'])); ?>" <?php echo e($currentOrder === 'desc' ? 'selected' : ''); ?>> <?php echo e(translate('sort_by_latest')); ?> </option> <option value="<?php echo e(route('account-oder', ['order_by' => 'asc'])); ?>" <?php echo e($currentOrder === 'asc' ? 'selected' : ''); ?>> <?php echo e(translate('sort_by_oldest')); ?> </option> </select> </div> </div> <div class="card __card d-flex web-direction customer-profile-orders h-100-44"> <div class="card-body"> <?php if($orders->count()>0): ?> <div class="row g-2"> <?php $__currentLoopData = $orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-md-6"> <div class="cus-shadow rounded-8 p-xl-3 p-2"> <div class="media-order"> <a href="<?php echo e(route('account-order-details', ['id'=>$order->id])); ?>" class="d-block position-relative w-70px border rounded h-70px min-w-60px"> <?php if($order->seller_is == 'seller'): ?> <img alt="<?php echo e(translate('shop')); ?>" src="<?php echo e(getStorageImages(path: $order?->seller?->shop->image_full_url, type: 'shop')); ?>" class="w-100 h-100"> <?php elseif($order->seller_is == 'admin'): ?> <img alt="<?php echo e(translate('shop')); ?>" src="<?php echo e(getStorageImages(path: getInHouseShopConfig(key: 'image_full_url'), type: 'shop')); ?>" class="w-100 h-100"> <?php endif; ?> </a> <div class="cont w-auto text-start flex-grow-1"> <div class="d-flex align-items-center justify-content-between gap-2"> <div class="d-flex align-items-center gap-1 flex-wrap"> <h6 class="mb-0"> <a href="<?php echo e(route('account-order-details', ['id'=>$order->id])); ?>" class="fs-14 font-semibold min-w-110 line--limit-1"> <?php echo e(translate('order')); ?> #<?php echo e($order['id']); ?> </a> </h6> <div> <?php if($order['order_status']=='failed' || $order['order_status']=='canceled'): ?> <span class="status-badge rounded-pill __badge badge-soft-danger fs-12 font-semibold text-capitalize"> <?php echo e(translate($order['order_status'] =='failed' ? 'failed_to_deliver' : $order['order_status'])); ?> </span> <?php elseif($order['order_status']=='confirmed' || $order['order_status']=='processing' || $order['order_status']=='delivered'): ?> <span class="status-badge rounded-pill __badge badge-soft-success fs-12 font-semibold text-capitalize"> <?php echo e(translate($order['order_status']=='processing' ? 'packaging' : $order['order_status'])); ?> </span> <?php else: ?> <span class="status-badge rounded-pill __badge badge-soft-primary fs-12 font-semibold text-capitalize"> <?php echo e(translate($order['order_status'])); ?> </span> <?php endif; ?> </div> </div> <div class="btn-group myorder-dropdown"> <button class="btn p-0 bg-transparent m-0 outline-0" type="button" data-toggle="dropdown" aria-expanded="false"> <i class="fi fi-rr-menu-dots-vertical fs-14"></i> </button> <ul class="dropdown-menu dropdown-menu-right p-2"> <li> <div class="dropdown-item w-100"> <a class="d-flex align-items-center justify-content-between w-100 fs-14 gap-2" href="<?php echo e(route('generate-invoice',[$order->id])); ?>" title="<?php echo e(translate('download_invoice')); ?>"> <?php echo e(translate('Download Invoice')); ?> <i class="fi fi-rr-download web-text-primary"></i> </a> </div> </li> <li> <div class="dropdown-item w-100"> <a class="d-flex align-items-center justify-content-between w-100 fs-14 gap-2" href="<?php echo e(route('account-order-details', ['id'=>$order->id])); ?>" title="<?php echo e(translate('view_order_details')); ?>"> <?php echo e(translate('View Order Details')); ?> <i class="fa fa-eye web-text-primary"></i> </a> </div> </li> </ul> </div> </div> <span class="fs-12 font-weight-medium"> <span class="text-dark fw-semibold"><?php echo e($order->order_details_sum_qty); ?></span> <?php echo e(translate('Products')); ?> </span> <div class="d-flex align-items-center justify-content-between gap-1 flex-wrap mt-1"> <div class="text-secondary-50 fs-12 font-weight-normal"> <?php echo e(date('d M, Y h:i A',strtotime($order['created_at']))); ?> </div> <div class="web-text-primary fs-16 font-bold"> <?php ($orderTotalPriceSummary = \App\Utils\OrderManager::getOrderTotalPriceSummary(order: $order)); ?> <?php echo e(webCurrencyConverter(amount: $orderTotalPriceSummary['totalAmount'])); ?> </div> </div> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php else: ?> <div class="d-flex justify-content-center align-items-center h-100"> <div class="d-flex flex-column justify-content-center align-items-center gap-3"> <img src="<?php echo e(theme_asset(path: 'public/assets/front-end/img/empty-icons/empty-orders.svg')); ?>" alt="" width="100"> <h5 class="text-muted fs-14 font-semi-bold text-center"><?php echo e(translate('You_have_not_any_order_yet')); ?>!</h5> </div> </div> <?php endif; ?> <div class="card-footer border-0"> <?php echo e($orders->links()); ?> </div> </div> </div> </section> </div> </div> <?php $orderSuccessIds = session('order_success_ids') ?? []; if (!is_array($orderSuccessIds)) { $orderSuccessIds = []; } $isPlural = count($orderSuccessIds) > 1; session()->forget('order_success_ids'); ?> <?php if($orderSuccessIds && auth('customer')->check()): ?> <div class="modal fade" id="order_successfully" aria-labelledby="order_successfully" tabindex="-1" aria-hidden="true"> <div class="modal-dialog modal--md modal-dialog-centered"> <div class="modal-content"> <div class="modal-body rtl"> <div class="d-flex justify-content-end pb-2"> <button class="close close-quick-view-modal ps-2 pe-1 z-index-99" type="button" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="text-center px-sm-3 pb-2 pt-4 mt-xl-1"> <div class="mb-20"> <img width="56" height="56" class="" src="<?php echo e(theme_asset(path: "public/assets/front-end/img/icons/checked-circle.png")); ?>" alt=""> </div> <h6 class="mb-3 fs-18 fw-semibold"><?php echo e(translate('Thank You For Your Purchase!')); ?></h6> <p class="fs-14 title-semidark mb-30"> <?php echo e(translate('We have received your order and will ship it shortly.')); ?> <?php echo e(translate('Your Order ID' . ($isPlural ? 's' : ''))); ?> <?php echo e(implode(', ', $orderSuccessIds)); ?> <?php echo e(translate('keep it handy for tracking.')); ?> </p> <a href="<?php echo e(route('home')); ?>" class="btn btn--primary font-bold px-4 font-weight-normal rounded-10"> <?php echo e(translate('Explore More Items')); ?> </a> </div> </div> </div> </div> </div> <?php endif; ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <?php if($orderSuccessIds): ?> <script> document.addEventListener('DOMContentLoaded', function () { const modalEl = document.getElementById('order_successfully'); const orderModal = new bootstrap.Modal(modalEl, { backdrop: 'static', keyboard: false }); orderModal.show(); document.getElementById('modal-close-btn').addEventListener('click', function() { setTimeout(() => { orderModal.hide(); }, 600); }); }); </script> <?php endif; ?> <script> document.addEventListener('DOMContentLoaded', function() { const filterSelect = document.getElementById('orderFilter'); filterSelect.addEventListener('change', function() { const url = this.value; if (url) { window.location.href = url; } }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.front-end.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home2/slnssare/public_html/resources/themes/default/web-views/users-profile/account-orders.blade.php ENDPATH**/ ?>