ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
storage
/
framework
/
views
/
Viewing: 680d25414d8437bcbba742dbd8e27f37.php
<?php $__env->startSection('title', translate('order_Details')); ?> <?php $__env->startSection('content'); ?> <?php ($shippingAddress = $order['shipping_address_data'] ?? null); ?> <div class="content container-fluid"> <div class="d-flex justify-content-between align-items-center gap-3 mb-3"> <h2 class="fs-20 mb-0 text-capitalize d-flex align-items-center gap-2"> <img width="20" height="20" src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/all-orders.png')); ?>" alt=""> <span><?php echo e(translate('order_Details')); ?></span> </h2> <div class="d-flex gap-1 align-items-center"> <a href="<?php echo e($previousOrder ? route('admin.orders.details', [$previousOrder['id']]) : 'javascript:'); ?>" class="btn btn-circle text-primary bg-primary bg-opacity-10 <?php echo e($previousOrder ? '' : 'disabled opacity-25'); ?>"> <i class="fi fi-sr-angle-left d-flex"></i> </a> <a href="<?php echo e($nextOrder ? route('admin.orders.details', [$nextOrder['id']]) : 'javascript:'); ?>" class="btn btn-circle text-primary bg-primary bg-opacity-10 <?php echo e($nextOrder ? '' : 'disabled opacity-25'); ?>"> <i class="fi fi-sr-angle-right d-flex"></i> </a> </div> </div> <div class="row gy-3" id="printableArea"> <div class="col-lg-8"> <div class="card h-100"> <div class="card-body"> <div class="d-flex flex-wrap flex-md-nowrap gap-10 justify-content-between mb-4"> <div class="d-flex flex-column gap-3 flex-1"> <h4 class="text-capitalize fs-16 fw-bold"> <?php echo e(translate('Order_Details')); ?> #<?php echo e($order['id']); ?> <?php if($order['order_type'] == 'POS'): ?> <span>(<?php echo e('POS'); ?>)</span> <?php endif; ?> </h4> <div class="fs-12"> <?php echo e(date('d M, Y , h:i A', strtotime($order['created_at']))); ?> </div> <div class="d-flex flex-column gap-3"> <div class="d-flex flex-wrap gap-2"> <?php if($linkedOrders->count() >0): ?> <div class="text-dark fs-12 d-flex align-items-center rounded"> <?php echo e(translate('linked_orders')); ?> (<?php echo e($linkedOrders->count()); ?>) : </div> <?php $__currentLoopData = $linkedOrders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $linked): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <a href="<?php echo e(route('admin.orders.details', [$linked['id']])); ?>" class="text-primary text-underline fw-bold">#<?php echo e($linked['id']); ?></a> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> <?php if(!is_null($order['order_note'])): ?> <div class="bg-section fs-12 px-12 py-10 text-dark rounded d-flex gap-2 align-items-center"> <span> # <?php echo e(translate('Note')); ?>: <?php echo e($order['order_note']); ?> </span> </div> <?php endif; ?> <?php if($order['payment_method'] == 'cash_on_delivery' && $order['bring_change_amount'] > 0): ?> <div class="bg-success bg-opacity-10 fs-12 px-12 py-10 text-dark rounded d-flex gap-2 align-items-center"> <span> <?php echo e(translate('Please_bring')); ?> <span class="fw-semibold"> <?php echo e($order['bring_change_amount']); ?> <?php echo e($order['bring_change_amount_currency'] ?? ''); ?> </span> <?php echo e(translate('in_change_for_the_customer_when_making_the_delivery')); ?> </span> </div> <?php endif; ?> </div> </div> <div class="text-sm-end flex-grow-1"> <div class="d-flex flex-wrap gap-10 justify-content-start justify-content-lg-end"> <?php if($order->verificationImages && count($order->verificationImages)>0 && $order->verification_status ==1): ?> <div> <button class="btn btn-primary px-4" data-bs-toggle="modal" data-bs-target="#order_verification_modal"> <i class="fi fi-sr-shield-trust"></i> <?php echo e(translate('order_verification')); ?> </button> </div> <?php endif; ?> <a class="btn btn-primary" target="_blank" href=<?php echo e(route('admin.orders.generate-invoice', [$order['id']])); ?>> <img alt="" class="mr-1" src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/icons/uil_invoice.svg')); ?>"> <?php echo e(translate('print_Invoice')); ?> </a> </div> <div class="d-flex flex-column gap-2 mt-3"> <div class="order-status d-flex justify-content-sm-end gap-10 text-capitalize fs-12"> <span class="text-dark"><?php echo e(translate('status')); ?>: </span> <?php if($order['order_status']=='pending'): ?> <span class="badge color-caribbean-green-soft fw-bold rounded-50 d-flex align-items-center py-1 px-2"><?php echo e(translate(str_replace('_',' ',$order['order_status']))); ?></span> <?php elseif($order['order_status']=='failed'): ?> <span class="badge badge-danger text-bg-danger fw-bold rounded-50 d-flex align-items-center py-1 px-2"><?php echo e(translate(str_replace('_',' ',$order['order_status'] == 'failed' ? 'Failed to Deliver' : ''))); ?> </span> <?php elseif($order['order_status']=='processing' || $order['order_status']=='out_for_delivery'): ?> <span class="badge badge-warning text-bg-warning fw-bold rounded-50 d-flex align-items-center py-1 px-2"> <?php echo e(translate(str_replace('_',' ',$order['order_status'] == 'processing' ? 'Packaging' : $order['order_status']))); ?> </span> <?php elseif($order['order_status']=='delivered' || $order['order_status']=='confirmed'): ?> <span class="badge badge-success text-bg-success fw-bold rounded-50 d-flex align-items-center py-1 px-2"> <?php echo e(translate(str_replace('_',' ',$order['order_status']))); ?> </span> <?php else: ?> <span class="badge badge-danger text-bg-danger fw-bold rounded-50 d-flex align-items-center py-1 px-2"> <?php echo e(translate(str_replace('_',' ',$order['order_status']))); ?> </span> <?php endif; ?> </div> <div class="payment-method d-flex justify-content-sm-end gap-10 text-capitalize fs-12"> <span class="text-dark"><?php echo e(translate('payment_Method')); ?> :</span> <strong><?php echo e(translate($order['payment_method'])); ?></strong> </div> <?php if($order->payment_method != 'cash_on_delivery' && $order->payment_method != 'pay_by_wallet' && !isset($order->offlinePayments)): ?> <div class="reference-code d-flex justify-content-sm-end gap-10 text-capitalize fs-12"> <span class="text-dark"><?php echo e(translate('reference_Code')); ?> :</span> <strong><?php echo e(str_replace('_',' ',$order['transaction_ref'])); ?> <?php echo e($order->payment_method == 'offline_payment' ? '('.$order->payment_by.')':''); ?></strong> </div> <?php endif; ?> <div class="d-flex justify-content-sm-end gap-10 fs-12"> <span class="text-dark"><?php echo e(translate('payment_Status')); ?>:</span> <?php if($order['payment_status']=='paid'): ?> <span class="text-success fw-bold"> <?php echo e(translate('paid')); ?> </span> <?php else: ?> <span class="text-danger fw-bold"> <?php echo e(translate('unpaid')); ?> </span> <?php endif; ?> </div> <?php if(getWebConfig('order_verification')): ?> <span class="d-flex justify-content-sm-end gap-10 fs-12"> <b> <?php echo e(translate('order_verification_code')); ?> : <?php echo e($order['verification_code']); ?> </b> </span> <?php endif; ?> </div> </div> </div> <div class="table-responsive"> <table class="table fs-12 table-hover table-borderless align-middle"> <thead class="text-capitalize"> <tr> <th><?php echo e(translate('SL')); ?></th> <th><?php echo e(translate('item_details')); ?></th> <th class="text-center"><?php echo e(translate('Qty')); ?></th> <th class="text-end"><?php echo e(translate('item_price')); ?></th> <th class="text-end"><?php echo e(translate('discount')); ?></th> <th class="text-end"><?php echo e(translate('total_price')); ?></th> </tr> </thead> <tbody> <?php ($item_price=0); ?> <?php ($total_price=0); ?> <?php ($subtotal=0); ?> <?php ($total=0); ?> <?php ($discount=0); ?> <?php ($row=0); ?> <?php $__currentLoopData = $order->details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$detail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php ($productDetails = $detail?->productAllStatus ?? json_decode($detail->product_details, true)); ?> <?php if($productDetails): ?> <tr> <td><?php echo e(++$row); ?></td> <td> <div class="media align-items-center gap-10"> <a target="_blank" href="<?php echo e(route('admin.products.view', ['addedBy' => $productDetails['added_by'] == 'seller' ? 'vendor' : 'in-house', 'id' => $productDetails['id']])); ?>"> <img class="avatar avatar-60 rounded img-fit" src="<?php echo e(getStorageImages(path:$detail?->productAllStatus?->thumbnail_full_url, type: 'backend-product')); ?>" alt="<?php echo e(translate('image_Description')); ?>"> </a> <div> <a target="_blank" class="text-dark fs-12 fw-bold" <?php if(strlen($productDetails['name']) > 30): ?> data-bs-toggle="tooltip" title="<?php echo e($productDetails['name']); ?>" <?php endif; ?> href="<?php echo e(route('admin.products.view', ['addedBy' => $productDetails['added_by'] == 'seller' ? 'vendor' : 'in-house', 'id' => $productDetails['id']])); ?>" > <?php echo e(substr($productDetails['name'], 0, 30)); ?><?php echo e(strlen($productDetails['name'])>30?'...':''); ?> </a> <div class="fs-10"> <strong><?php echo e(translate('unit_price')); ?> :</strong> <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $detail['price']))); ?> </div> <?php if($detail->variant): ?> <div class="max-w-150px text-wrap fs-10"> <strong> <?php echo e(translate('variation')); ?> : </strong> <?php echo e($detail['variant']); ?> </div> <?php endif; ?> </div> </div> <?php if(isset($productDetails['digital_product_type']) && $productDetails['digital_product_type'] == 'ready_after_sell'): ?> <button type="button" class="btn btn-sm btn-primary mt-2" title="<?php echo e(translate('file_upload')); ?>" data-bs-toggle="modal" data-bs-target="#fileUploadModal-<?php echo e($detail->id); ?>"> <i class="fi fi-rr-file"></i> <?php echo e(translate('file')); ?> </button> <?php endif; ?> </td> <td class="text-center"><?php echo e($detail['qty']); ?></td> <td class="text-end"> <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $detail['price']*$detail['qty']), currencyCode: getCurrencyCode())); ?> </td> <td class="text-end"><?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $detail['discount']), currencyCode: getCurrencyCode())); ?></td> <?php ($subtotal=($detail['price']*$detail['qty'])-$detail['discount']); ?> <td class="text-end"><?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $subtotal), currencyCode: getCurrencyCode())); ?></td> </tr> <?php ($item_price+=$detail['price']*$detail['qty']); ?> <?php ($discount+=$detail['discount']); ?> <?php ($total+=$subtotal); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <?php $__currentLoopData = $order->details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$detail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php ($productDetails = $detail?->productAllStatus ?? json_decode($detail->product_details, true)); ?> <?php if(isset($productDetails['digital_product_type']) && $productDetails['digital_product_type'] == 'ready_after_sell'): ?> <?php ($product_details = json_decode($detail?->product_details, true)); ?> <div class="modal fade" id="fileUploadModal-<?php echo e($detail->id); ?>" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <form action="<?php echo e(route('admin.orders.digital-file-upload-after-sell')); ?>" method="post" enctype="multipart/form-data" class="form-advance-validation form-advance-inputs-validation form-advance-file-validation non-ajax-form-validate" novalidate="novalidate"> <?php echo csrf_field(); ?> <div class="modal-body"> <?php if($detail?->digital_file_after_sell_full_url && isset($detail->digital_file_after_sell_full_url['key'])): ?> <div class="mb-4"> <?php echo e(translate('uploaded_file').' : '); ?> <?php ($downloadPathExist = $detail->digital_file_after_sell_full_url['status']); ?> <span data-file-path="<?php echo e($downloadPathExist ? $detail->digital_file_after_sell_full_url['path'] : 'javascript:'); ?>" class="getDownloadFileUsingFileUrl btn btn-success btn-sm <?php echo e($downloadPathExist ? '' : 'download-path-not-found'); ?>" title="<?php echo e(translate('download')); ?>"> <?php echo e(translate('download')); ?> <i class="fi fi-sr-down-to-line"></i> </span> </div> <?php elseif($detail->digital_file_after_sell): ?> <div class="mb-4"> <?php echo e(translate('uploaded_file').' : '); ?> <?php ($downloadPath =dynamicStorage(path: 'storage/app/public/product/digital-product/'.$detail->digital_file_after_sell)); ?> <span data-file-path="<?php echo e(file_exists( $downloadPath) ? $downloadPath : 'javascript:'); ?>" class="getDownloadFileUsingFileUrl btn btn-success btn-sm <?php echo e(file_exists( $downloadPath) ? $downloadPath : 'download-path-not-found'); ?>" title="<?php echo e(translate('download')); ?>"> <?php echo e(translate('download')); ?> <i class="fi fi-sr-down-to-line"></i> </span> </div> <?php else: ?> <h4 class="text-center"><?php echo e(translate('file_not_found').'!'); ?></h4> <?php endif; ?> <?php if(($product_details['added_by'] == 'admin') && $detail->seller_id == 1): ?> <div class="inputDnD"> <div class="form-group inputDnD input_image input_image_edit" data-title="<?php echo e(translate('drag_&_drop_file_or_browse_file')); ?>"> <input type="file" data-max-size="<?php echo e(getFileUploadMaxSize(type: 'file')); ?>" name="digital_file_after_sell" class="form-control-file text-primary fw-bold image-input" accept=".jpg, .jpeg, .png, .gif, .zip, .pdf"> </div> </div> <div class="mt-1 text-info"> <?php echo e(translate('file_type').' '.':'.' '.'jpg, jpeg, png, gif, zip, pdf'); ?> </div> <input type="hidden" value="<?php echo e($detail->id); ?>" name="order_id"> <?php else: ?> <h4 class="mt-3 text-center"><?php echo e(translate('admin_have_no_permission_for_vendors_digital_product_upload')); ?></h4> <?php endif; ?> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><?php echo e(translate('close')); ?></button> <?php if(($product_details['added_by'] == 'admin') && $detail->seller_id == 1): ?> <button type="submit" class="btn btn-primary"><?php echo e(translate('upload')); ?></button> <?php endif; ?> </div> </form> </div> </div> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <hr/> <?php ($orderTotalPriceSummary = \App\Utils\OrderManager::getOrderTotalPriceSummary(order: $order)); ?> <div class="px-sm-5 overflow-x-auto"> <table class="table table-borderless table-sm mb-0 text-sm-right text-nowrap fs-12"> <tbody> <tr> <td class="text-end text-dark text-capitalize"><span><?php echo e(translate('item_price')); ?></span></td> <td class="text-end text-dark"> <span><?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $orderTotalPriceSummary['itemPrice']), currencyCode: getCurrencyCode())); ?></span> </td> </tr> <tr> <td class="text-end text-dark text-capitalize"><span><?php echo e(translate('item_discount')); ?></span></td> <td class="text-end text-dark"> - <span><?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $orderTotalPriceSummary['itemDiscount']), currencyCode: getCurrencyCode())); ?></span> </td> </tr> <tr> <td class="text-end text-dark text-capitalize"><span><?php echo e(translate('sub_total')); ?></span></td> <td class="text-end text-dark"> <span><?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $orderTotalPriceSummary['subTotal']), currencyCode: getCurrencyCode())); ?></span> </td> </tr> <tr> <td class="text-end text-dark"> <span><?php echo e(translate('coupon_Discount')); ?></span> <br> <?php echo e((!in_array($order['coupon_code'], [0, NULL]) ? '('.translate('expense_bearer_').($order['coupon_discount_bearer']=='inhouse' ? 'admin' : ($order['coupon_discount_bearer'] == 'seller' ? 'vendor' : $order['coupon_discount_bearer'])).')': '' )); ?> </td> <td class="text-end text-dark"> <span>- <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $orderTotalPriceSummary['couponDiscount']), currencyCode: getCurrencyCode())); ?></span> </td> </tr> <?php if($orderTotalPriceSummary['referAndEarnDiscount'] > 0): ?> <tr> <td class="text-end text-dark"><span><?php echo e(translate('referral_discount')); ?></span></td> <td class="text-end text-dark"> <span>- <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $orderTotalPriceSummary['referAndEarnDiscount']), currencyCode: getCurrencyCode())); ?></span> </td> </tr> <?php endif; ?> <tr> <td class="text-end text-dark text-uppercase"><span><?php echo e(translate('vat')); ?>/<?php echo e(translate('tax')); ?></span></td> <td class="text-end text-dark"> <span><?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $orderTotalPriceSummary['totalTaxAmount']), currencyCode: getCurrencyCode())); ?></span> </td> </tr> <tr> <td class="text-end text-dark text-capitalize"> <span><?php echo e(translate('shipping_fee')); ?></span> <?php if($order['is_shipping_free']): ?> <br> (<?php echo e(translate('expense_bearer_').($order['free_delivery_bearer'] == 'seller' ? 'vendor' : $order['free_delivery_bearer'])); ?>) <?php endif; ?> </td> <td class="text-end text-dark"> <span> <?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $orderTotalPriceSummary['shippingTotal']))); ?> </span> </td> </tr> <tr> <td class="text-end text-dark"> <strong><?php echo e(translate('total')); ?></strong> <span class="fs-10 fw-medium"><?php echo e($orderTotalPriceSummary['tax_model'] == 'include' ? '('.translate('Tax_:_Inc.').')' : ''); ?></span> </td> <td class="text-end text-dark"> <strong><?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $orderTotalPriceSummary['totalAmount']), currencyCode: getCurrencyCode())); ?></strong> </td> </tr> <?php if($order->order_type == 'pos' || $order->order_type == 'POS'): ?> <tr> <td class="text-end text-dark"><span><?php echo e(translate('paid_amount')); ?></span></td> <td class="text-end text-dark"> <span><?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $orderTotalPriceSummary['paidAmount']), currencyCode: getCurrencyCode())); ?></span> </td> </tr> <tr> <td class="text-end text-dark"><span><?php echo e(translate('change_amount')); ?></span></td> <td class="text-end text-dark"> <span><?php echo e(setCurrencySymbol(amount: usdToDefaultCurrency(amount: $orderTotalPriceSummary['changeAmount']), currencyCode: getCurrencyCode())); ?></span> </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> <div class="col-lg-4 d-flex flex-column gap-3"> <?php if($order->payment_method == 'offline_payment' && isset($order->offlinePayments)): ?> <div class="card"> <div class="card-body"> <div class="d-flex gap-2 align-items-center justify-content-between mb-3"> <h4 class="d-flex gap-2 fs-14 fw-bold mb-0"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/product_setup.png')); ?>" alt="" width="20"> <?php echo e(translate('Payment_Information')); ?> </h4> </div> <div> <table> <tbody> <tr> <td><?php echo e(translate('payment_Method')); ?></td> <td class="py-1 px-2">:</td> <td><strong><?php echo e(translate($order['payment_method'])); ?></strong></td> </tr> <?php $__currentLoopData = $order->offlinePayments->payment_info; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(isset($item) && $key != 'method_id'): ?> <tr> <td><?php echo e(translate($key)); ?></td> <td class="py-1 px-2">:</td> <td><strong><?php echo e($item ?? 'N/a'); ?></strong></td> </tr> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php if(isset($order?->payment_note) && $order?->payment_method == 'offline_payment'): ?> <div class="mt-3"> <h4><?php echo e(translate('payment_Note')); ?>:</h4> <p class="text-justify"> <?php echo e($order?->payment_note ?? 'N/a'); ?> </p> </div> <?php endif; ?> </div> </div> <?php endif; ?> <div class="card"> <div class="card-header"> <h2 class="mb-0 text-center fw-bold"><?php echo e(translate('order_&_Shipping_Info')); ?></h2> </div> <div class="card-body text-capitalize d-flex flex-column gap-4"> <div class=""> <label class="form-label fw-bold mb-2"><?php echo e(translate('change_order_status')); ?></label> <div class="select-wrapper"> <select name="order_status" id="order_status" class="status form-select" data-id="<?php echo e($order['id']); ?>"> <option value="pending" <?php echo e($order->order_status == 'pending'?'selected':''); ?> > <?php echo e(translate('pending')); ?></option> <option value="confirmed" <?php echo e($order->order_status == 'confirmed'?'selected':''); ?> > <?php echo e(translate('confirmed')); ?></option> <option value="processing" <?php echo e($order->order_status == 'processing'?'selected':''); ?> ><?php echo e(translate('packaging')); ?> </option> <option class="text-capitalize" value="out_for_delivery" <?php echo e($order->order_status == 'out_for_delivery'?'selected':''); ?> ><?php echo e(translate('out_for_delivery')); ?> </option> <option value="delivered" <?php echo e($order->order_status == 'delivered'?'selected':''); ?> ><?php echo e(translate('delivered')); ?> </option> <option value="returned" <?php echo e($order->order_status == 'returned'?'selected':''); ?> > <?php echo e(translate('returned')); ?></option> <option value="failed" <?php echo e($order->order_status == 'failed'?'selected':''); ?> ><?php echo e(translate('failed_to_Deliver')); ?> </option> <option value="canceled" <?php echo e($order->order_status == 'canceled'?'selected':''); ?> ><?php echo e(translate('canceled')); ?> </option> </select> </div> </div> <div class="d-flex justify-content-between align-items-center gap-10 form-control py-10 h-auto flex-wrap"> <span class="text-dark"> <?php echo e(translate('payment_status')); ?> </span> <div class="d-flex justify-content-end align-items-center gap-2"> <span class="text-primary fw-bold"><?php echo e($order->payment_status=='paid' ? translate('paid'):translate('unpaid')); ?></span> <label class="switcher payment-status-text"> <input class="switcher_input payment-status" type="checkbox" name="status" data-id="<?php echo e($order->id); ?>" value="<?php echo e($order->payment_status); ?>" <?php echo e($order->payment_status == 'paid' ? 'checked':''); ?> > <span class="switcher_control switcher_control_add <?php echo e($order->payment_status=='paid' ? 'checked':'unchecked'); ?>"></span> </label> </div> </div> <?php if($physicalProduct): ?> <ul class="list-unstyled list-unstyled-py-4 d-flex flex-column gap-4 mb-0 pe-0"> <li class=""> <?php if($order->shipping_type == 'order_wise'): ?> <label class="form-label fw-bold mb-2"> <?php echo e(translate('shipping_Method')); ?> (<?php echo e($order->shipping ? translate(str_replace('_',' ',$order->shipping->title)) :translate('no_shipping_method_selected')); ?> ) </label> <?php endif; ?> <div class="select-wrapper"> <select class="form-select" name="delivery_type" id="choose_delivery_type" <?php echo e($order->order_status == 'delivered' ? 'disabled' : ''); ?>> <option value="0"> <?php echo e(translate('choose_delivery_type')); ?> </option> <option value="self_delivery" <?php echo e($order->delivery_type=='self_delivery'?'selected':''); ?>> <?php echo e(translate('by_self_delivery_man')); ?> </option> <option value="third_party_delivery" <?php echo e($order->delivery_type=='third_party_delivery'?'selected':''); ?> > <?php echo e(translate('by_third_party_delivery_service')); ?> </option> </select> </div> </li> <li class="choose_delivery_man"> <label class="form-label fw-bold mb-2"> <?php echo e(translate('delivery_man')); ?> </label> <select class="custom-select" name="delivery_man_id" id="addDeliveryMan" data-order-id="<?php echo e($order['id']); ?>" data-placeholder="Select from dropdown" <?php echo e($order->order_status == 'delivered' ? 'disabled' : ''); ?> > <option></option> <option value="0" <?php echo e(isset($order->deliveryMan) ? 'disabled':''); ?>><?php echo e(translate('select')); ?></option> <?php $__currentLoopData = $deliveryMen; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $deliveryMan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($deliveryMan['id']); ?>" <?php echo e($order['delivery_man_id']==$deliveryMan['id']?'selected':''); ?>> <?php echo e($deliveryMan['f_name'].' '.$deliveryMan['l_name'].' ('.$deliveryMan['phone'].' )'); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php if(isset($order->deliveryMan)): ?> <div class="p-2 bg-section rounded mt-4"> <div class="media m-1 gap-3"> <img class="avatar rounded-circle" src="<?php echo e(getStorageImages(path: $order->deliveryMan?->image_full_url, type: 'backend-profile')); ?>" alt="<?php echo e(translate('Image')); ?>"> <div class="media-body"> <h5 class="mb-1"><?php echo e($order->deliveryMan?->f_name.' '.$order->deliveryMan?->l_name); ?></h5> <a href="tel:<?php echo e($order->deliveryMan?->phone); ?>" class="fs-12 text-dark"><?php echo e($order->deliveryMan?->phone); ?></a> </div> </div> </div> <?php else: ?> <div class="p-3 bg-section rounded mt-4"> <div class="media m-1 gap-2 align-items-center"> <img class="avatar rounded-circle" src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/delivery-man.png')); ?>" alt="<?php echo e(translate('Image')); ?>"> <div class="media-body"> <div class="fs-12"><?php echo e(translate('no_delivery_man_assigned')); ?></div> </div> </div> </div> <?php endif; ?> </li> <?php if(isset($order->deliveryMan)): ?> <li class="choose_delivery_man"> <label class="form-label fw-semibold"> <?php echo e(translate('delivery_man_incentive')); ?> (<?php echo e(getCurrencySymbol()); ?>) <span class="tooltip-icon cursor-pointer" data-bs-toggle="tooltip" data-bs-placement="top" aria-label="<?php echo e(translate('encourage_your_deliveryman_by_giving_him_incentive').' '.translate('this_amount_will_be_count_as_admin_expense').'.'); ?>" data-bs-title="<?php echo e(translate('encourage_your_deliveryman_by_giving_him_incentive').' '.translate('this_amount_will_be_count_as_admin_expense').'.'); ?>"> <i class="fi fi-sr-info"></i> </span> </label> <div class="d-flex gap-2 align-items-center"> <input type="number" value="<?php echo e(usdToDefaultCurrency(amount: $order->deliveryman_charge)); ?>" name="deliveryman_charge" data-order-id="<?php echo e($order['id']); ?>" class="form-control" placeholder="<?php echo e(translate('ex').': 20'); ?>" <?php echo e($order['order_status']=='delivered' ? 'readonly':''); ?> required> <button class="btn btn-primary h-40 <?php echo e($order['order_status']=='delivered' ? 'disabled deliveryman-charge-alert':'deliveryman-charge'); ?>"><?php echo e(translate('update')); ?></button> </div> </li> <li class="choose_delivery_man"> <label class="form-label fw-semibold"><?php echo e(translate('expected_delivery_date')); ?></label> <input type="date" data-order-id="<?php echo e($order['id']); ?>" value="<?php echo e($order->expected_delivery_date); ?>" name="expected_delivery_date" id="expected_delivery_date" class="form-control set-today-date-minimum" <?php echo e($order->order_status == 'delivered' ? 'disabled' : 'required'); ?>> </li> <?php endif; ?> <li class="mt-1" id="by_third_party_delivery_service_info"> <div class="p-2 bg-section rounded"> <div class="media overflow-hidden m-1 gap-3"> <img class="avatar rounded-circle" src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/third-party-delivery.png')); ?>" alt="<?php echo e(translate('image')); ?>"> <div class="media-body w-100"> <h5 class=""><?php echo e($order->delivery_service_name ?? translate('not_assign_yet')); ?></h5> <span class="fs-12 text-dark text-wrap d-block"><?php echo e(translate('track_ID').' '.':'.' '.$order->third_party_delivery_tracking_id); ?></span> </div> </div> </div> </li> </ul> <?php endif; ?> </div> </div> <?php ($billing=$order['billing_address_data']); ?> <?php if($physicalProduct || !$billing): ?> <div class="card"> <?php if($shippingAddress): ?> <div class="card-body"> <div class="d-flex gap-2 align-items-center justify-content-between mb-3"> <h4 class="d-flex gap-2 fs-14 fw-bold mb-0"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/vendor-information.png')); ?>" alt=""> <?php echo e(translate('shipping_address')); ?> </h4> <?php if($order['order_status'] != 'delivered'): ?> <button class="btn btn-outline-primary icon-btn fs-8" style="--size: 20px;" title="Edit" data-bs-toggle="modal" data-bs-target="#shippingAddressUpdateModal"> <i class="fi fi-sr-pencil"></i> </button> <?php endif; ?> </div> <table class="overflow-wrap-anywhere"> <tbody> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('name')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2"> <span class="fw-semibold"> <?php echo e($shippingAddress->contact_person_name); ?> </span> <?php echo e($order->is_guest ? '('. translate('guest_customer') .')':''); ?> </td> </tr> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('contact')); ?></td> <td class="px-3 py-2">:</td> <td class="fw-semibold px-0 py-2"><?php echo e($shippingAddress->phone); ?></td> </tr> <?php if($order->is_guest && $shippingAddress->email): ?> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('email')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2" class="fw-semibold"><?php echo e($shippingAddress->email); ?></td> </tr> <?php endif; ?> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('country')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2" class="fw-semibold"><?php echo e($shippingAddress->country); ?></td> </tr> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('city')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2" class="fw-semibold"><?php echo e($shippingAddress->city); ?></td> </tr> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('zip_code')); ?></td> <td class="px-3 py-2">:</td> <td class="fw-semibold px-0 py-2"><?php echo e($shippingAddress->zip); ?></td> </tr> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('Address')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2"> <div class="d-flex align-items-start gap-2"> <span><?php echo e($shippingAddress->address ?? translate('empty')); ?></span> </div> </td> </tr> </tbody> </table> </div> <?php else: ?> <div class="card-body"> <div class="media align-items-center"> <span><?php echo e(translate('no_shipping_address_found')); ?></span> </div> </div> <?php endif; ?> </div> <?php endif; ?> <?php if(getWebConfig('map_api_status') == 1 && isset($shippingAddress->latitude) && isset($shippingAddress->longitude)): ?> <div class="card card-body"> <div class="d-flex justify-content-between gap-3 align-items-center flex-wrap"> <h3 class="mb-0"><?php echo e(translate('Shipping_Location')); ?></h3> <button type="button" class="btn btn-outline-primary" data-bs-toggle="modal" data-bs-target="#locationModal"><?php echo e(translate('On_Map')); ?></button> </div> </div> <?php endif; ?> <?php if($billing): ?> <div class="card"> <div class="card-body"> <div class="d-flex gap-2 align-items-center justify-content-between mb-3"> <h4 class="d-flex gap-2 fs-14 fw-bold mb-0"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/vendor-information.png')); ?>" alt=""> <?php echo e(translate('billing_address')); ?> </h4> <?php if($order['order_status'] != 'delivered'): ?> <button class="btn btn-outline-primary icon-btn billing-address-update-modal" title="<?php echo e(translate('edit')); ?>" data-bs-toggle="modal" data-bs-target="#billingAddressUpdateModal"> <i class="fi fi-sr-pencil d-flex"></i> </button> <?php endif; ?> </div> <table class="overflow-wrap-anywhere"> <tbody> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('name')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2"> <span class="fw-semibold"> <?php echo e($billing->contact_person_name); ?> </span> <?php echo e($order->is_guest ? '('. translate('guest_customer') .')':''); ?> </td> </tr> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('contact')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2 fw-semibold"><?php echo e($billing->phone); ?></td> </tr> <?php if($order->is_guest && $billing->email): ?> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('email')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2 fw-semibold"><?php echo e($billing->email); ?></td> </tr> <?php endif; ?> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('country')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2 fw-semibold"><?php echo e($billing->country); ?></td> </tr> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('city')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2 fw-semibold"><?php echo e($billing->city); ?></td> </tr> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('zip_code')); ?></td> <td class="px-3 py-2">:</td> <td class="fw-semibold"><?php echo e($billing->zip); ?></td> </tr> <tr> <td class="px-0 py-2 text-nowrap"><?php echo e(translate('Address')); ?></td> <td class="px-3 py-2">:</td> <td class="px-0 py-2"> <div class="d-flex align-items-start gap-2"> <span><?php echo e($billing->address); ?></span> </div> </td> </tr> </tbody> </table> </div> </div> <?php endif; ?> <?php if(!$order->is_guest && $order->customer): ?> <div class="card"> <div class="card-body"> <div class="d-flex gap-2 align-items-center justify-content-between mb-3"> <h4 class="d-flex gap-2 fs-14 fw-bold mb-0"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/vendor-information.png')); ?>" alt=""> <?php echo e(translate('customer_information')); ?> </h4> </div> <div class="media flex-wrap gap-3 gap-sm-4"> <a class="d-block" href="<?php echo e(route('admin.customer.view', ['user_id' => $order->customer['id']])); ?>" target="_blank"> <img class="avatar rounded-circle avatar-70 object-fit-cover" src="<?php echo e(getStorageImages(path: $order->customer->image_full_url , type: 'backend-basic')); ?>" alt="<?php echo e(translate('Image')); ?>"> </a> <div class="media-body d-flex flex-column gap-1"> <a class="text-dark" href="<?php echo e(route('admin.customer.view', ['user_id' => $order->customer['id']])); ?>" target="_blank"> <span class="fw-semibold"><?php echo e($order->customer['f_name'].' '.$order->customer['l_name']); ?> </span> </a> <?php if($order?->customer?->email !== 'walking@customer.com'): ?> <span class="text-dark fs-12"> <span class="fw-bold"><?php echo e($orderCount); ?></span> <?php echo e(translate('orders')); ?></span> <span class="text-dark break-all fs-12"><span class="fw-semibold"><?php echo e($order->customer['phone']); ?></span></span> <span class="text-dark break-all fs-12"><?php echo e($order->customer['email']); ?></span> <?php endif; ?> </div> </div> </div> </div> <?php endif; ?> <div class="card"> <div class="card-body"> <h4 class="d-flex gap-2 fs-14 fw-bold mb-3"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/shop-information.png')); ?>" alt=""> <?php echo e(translate('shop_Information')); ?> </h4> <div class="media d-flex gap-3 align-items-center"> <?php if($order->seller_is == 'admin'): ?> <a class="d-block" target="_blank" href="<?php echo e(route('admin.business-settings.inhouse-shop')); ?>"> <img class="avatar rounded avatar-70 img-fit-contain " src="<?php echo e(getStorageImages(path: getInHouseShopConfig(key: 'image_full_url'), type: 'shop')); ?>" alt=""> </a> <div class="media-body d-flex flex-column gap-2"> <a class="fs-14 fw-semibold mb-0 text-dark hover-c1" href="<?php echo e(route('admin.business-settings.inhouse-shop')); ?>" target="_blank"><?php echo e(getInHouseShopConfig(key: 'name')); ?></a> <span class="text-dark fs-12"><strong><?php echo e($totalDelivered); ?></strong> <?php echo e(translate('orders_Served')); ?></span> </div> <?php else: ?> <?php if(!empty($order->seller->shop)): ?> <a class="d-block" target="_blank" href="<?php echo e(route('admin.vendors.view', ['id' => $order->seller->id])); ?>"> <img class="avatar rounded avatar-70 img-fit" src="<?php echo e(getStorageImages(path:$order->seller->shop->image_full_url , type: 'backend-basic')); ?>" alt=""> </a> <div class="media-body d-flex flex-column gap-2"> <a class="fs-14 fw-semibold mb-0 text-dark hover-c1" target="_blank" href="<?php echo e(route('admin.vendors.view', ['id' => $order->seller->id])); ?>"> <?php echo e($order->seller->shop->name); ?> </a> <span class="text-dark fs-12"><strong><?php echo e($totalDelivered); ?></strong> <?php echo e(translate('orders_Served')); ?></span> <span class="text-dark fs-12"> <strong><?php echo e($order->seller->shop->contact); ?></strong></span> <div class="d-flex align-items-start gap-2"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/location.png')); ?>" class="mt-1" alt=""> <?php echo e($order->seller->shop->address); ?> </div> </div> <?php else: ?> <div class="text-center p-4"> <img class="w-25" src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/empty-state-icon/shop-not-found.png')); ?>" alt="<?php echo e(translate('image_description')); ?>"> <p class="mb-0 fs-12"><?php echo e(translate('no_shop_found').'!'); ?></p> </div> <?php endif; ?> <?php endif; ?> </div> </div> </div> </div> </div> </div> <?php if($order->verificationImages && count($order->verificationImages)>0): ?> <div class="modal fade" id="order_verification_modal" tabindex="-1" aria-labelledby="order_verification_modal" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content"> <div class="modal-header d-flex justify-content-between align-items-center pb-4"> <h3 class="mb-0"><?php echo e(translate('order_verification_images')); ?></h3> <button type="button" class="btn-close border-0 btn-circle bg-section2 shadow-none" data-bs-dismiss="modal" aria-label="Close"> </button> </div> <div class="modal-body px-4 px-sm-5 pt-0"> <div class="d-flex flex-column align-items-center gap-2"> <div class="row gx-2"> <?php $__currentLoopData = $order->verificationImages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $image): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-lg-4 col-sm-6 "> <div class="mb-2 mt-2 border-1"> <img src="<?php echo e(getStorageImages(path: $image->image_full_url , type: 'backend-basic')); ?>" class="w-100" alt=""> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="col-12"> <div class="d-flex justify-content-end gap-3"> <button type="button" class="btn btn-secondary px-5" data-bs-dismiss="modal"><?php echo e(translate('close')); ?></button> </div> </div> </div> </div> </div> </div> </div> </div> <?php endif; ?> <div class="modal fade" id="shippingAddressUpdateModal" tabindex="-1" aria-labelledby="shippingAddressUpdateModal" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content"> <div class="modal-header border-0 pb-4 d-flex justify-content-between align-items-center"> <h3 class="mb-0"><?php echo e(translate('shipping_address')); ?></h3> <button type="button" class="btn-close border-0 btn-circle bg-section2 shadow-none" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body px-4 px-sm-5 pt-0"> <form action="<?php echo e(route('admin.orders.address-update')); ?>" method="post"> <?php echo csrf_field(); ?> <div class="d-flex flex-column align-items-center gap-2"> <input name="address_type" value="shipping" hidden> <input name="order_id" value="<?php echo e($order->id); ?>" hidden> <div class="row gx-3 gy-4"> <div class="col-md-6"> <div class="form-group"> <label for="name" class="form-label"><?php echo e(translate('contact_person_name')); ?></label> <input type="text" name="name" id="name" class="form-control" value="<?php echo e($shippingAddress? $shippingAddress->contact_person_name : ''); ?>" placeholder="<?php echo e(translate('ex')); ?>: <?php echo e(translate('john_doe')); ?>" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="phone_number" class="form-label"><?php echo e(translate('phone_number')); ?></label> <input class="form-control form-control-user" type="tel" value="<?php echo e($shippingAddress ? $shippingAddress->phone : ''); ?>" placeholder="<?php echo e(translate('ex').': 017xxxxxxxx'); ?>" name="phone_number" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="country" class="form-label"><?php echo e(translate('country')); ?></label> <select name="country" id="country" class="form-control"> <?php $__empty_1 = true; $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($country['name']); ?>" <?php echo e(isset($shippingAddress) && $country['name'] == $shippingAddress->country ? 'selected' : ''); ?>><?php echo e($country['name']); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <option value=""><?php echo e(translate('No_country_to_deliver')); ?></option> <?php endif; ?> </select> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="city" class="form-label"><?php echo e(translate('city')); ?></label> <input type="text" name="city" id="city" value="<?php echo e($shippingAddress ? $shippingAddress->city : ''); ?>" class="form-control" placeholder="<?php echo e(translate('ex')); ?>:<?php echo e(translate('dhaka')); ?>" required> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="zip_code" class="form-label"><?php echo e(translate('zip')); ?></label> <?php if($zipRestrictStatus == 1): ?> <select name="zip" class="form-control" data-live-search="true" required> <?php $__empty_1 = true; $__currentLoopData = $zipCodes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $code): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($code->zipcode); ?>"<?php echo e(isset($shippingAddress) && $code->zipcode == $shippingAddress->zip ? 'selected' : ''); ?>><?php echo e($code->zipcode); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <option value=""><?php echo e(translate('No_zip_to_deliver')); ?></option> <?php endif; ?> </select> <?php else: ?> <input type="text" class="form-control" value="<?php echo e($shippingAddress ? $shippingAddress->zip : ''); ?>" id="zip" name="zip" placeholder="<?php echo e(translate('ex')); ?>: 1216" <?php echo e($shippingAddress?'required':''); ?>> <?php endif; ?> </div> </div> <div class="col-12"> <div class="form-group"> <label for="address" class="form-label"><?php echo e(translate('address')); ?></label> <textarea name="address" id="address" name="address" rows="3" class="form-control" placeholder="<?php echo e(translate('ex')); ?> : <?php echo e(translate('street_1,_street_2,_street_3,_street_4')); ?>"><?php echo e($shippingAddress ? $shippingAddress->address : ''); ?></textarea> </div> </div> <input type="hidden" id="latitude" name="latitude" class="form-control d-inline" placeholder="<?php echo e(translate('Ex')); ?> : -94.22213" value="<?php echo e($shippingAddress->latitude ?? 0); ?>" required readonly> <input type="hidden" name="longitude" class="form-control" placeholder="<?php echo e(translate('Ex')); ?> : 103.344322" id="longitude" value="<?php echo e($shippingAddress->longitude ??0); ?>" required readonly> <?php if(getWebConfig('map_api_status') ==1 ): ?> <div class="col-12 "> <input id="pac-input" class="form-control rounded w-200 mt-1" title="<?php echo e(translate('search_your_location_here')); ?>" type="text" placeholder="<?php echo e(translate('search_here')); ?>"/> <div class="dark-support rounded w-100 h-200 mb-2" id="location_map_canvas_shipping"></div> </div> <?php endif; ?> <div class="col-12"> <div class="d-flex justify-content-end gap-3"> <button type="button" class="btn btn-secondary px-5" data-bs-dismiss="modal"><?php echo e(translate('cancel')); ?></button> <button type="submit" class="btn btn-primary px-5"><?php echo e(translate('update')); ?></button> </div> </div> </div> </div> </form> </div> </div> </div> </div> <?php if($billing): ?> <div class="modal fade" id="billingAddressUpdateModal" tabindex="-1" aria-labelledby="billingAddressUpdateModal" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content"> <div class="modal-header border-0 pb-4 d-flex justify-content-between align-items-center"> <h3 class="mb-0"><?php echo e(translate('billing_address')); ?></h3> <button type="button" class="btn-close border-0 btn-circle bg-section2 shadow-none" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body px-4 px-sm-5 pt-0"> <div class="d-flex flex-column align-items-center gap-2"> <form action="<?php echo e(route('admin.orders.address-update')); ?>" method="post"> <?php echo csrf_field(); ?> <div class="d-flex flex-column align-items-center gap-2"> <input name="address_type" value="billing" hidden> <input name="order_id" value="<?php echo e($order->id); ?>" hidden> <div class="row gx-3 gy-4"> <div class="col-md-6"> <div class="form-group"> <label for="name" class="form-label"><?php echo e(translate('contact_person_name')); ?></label> <input type="text" name="name" id="name" class="form-control" value="<?php echo e($billing? $billing->contact_person_name : ''); ?>" placeholder="<?php echo e(translate('ex')); ?>: <?php echo e(translate('john_doe')); ?>" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="phone_number" class="form-label"><?php echo e(translate('phone_number')); ?></label> <input class="form-control form-control-user" type="tel" value="<?php echo e($billing ? $billing->phone : ''); ?>" placeholder="<?php echo e(translate('ex').': 017xxxxxxxx'); ?>" name="phone_number" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="country" class="form-label"><?php echo e(translate('country')); ?></label> <select name="country" id="country" class="form-control"> <?php $__empty_1 = true; $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($country['name']); ?>" <?php echo e(isset($billing) && $country['name'] == $billing->country ? 'selected' : ''); ?>><?php echo e($country['name']); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <option value=""><?php echo e(translate('No_country_to_deliver')); ?></option> <?php endif; ?> </select> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="city" class="form-label"><?php echo e(translate('city')); ?></label> <input type="text" name="city" id="city" value="<?php echo e($billing ? $billing->city : ''); ?>" class="form-control" placeholder="<?php echo e(translate('ex')); ?>:<?php echo e(translate('dhaka')); ?>" required> </div> </div> <div class="col-md-3"> <div class="form-group"> <label for="zip_code" class="form-label"><?php echo e(translate('zip')); ?></label> <?php if($zipRestrictStatus == 1): ?> <select name="zip" class="form-control" data-live-search="true" required> <?php $__empty_1 = true; $__currentLoopData = $zipCodes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $code): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <option value="<?php echo e($code->zipcode); ?>"<?php echo e(isset($billing) && $code->zipcode == $billing->zip ? 'selected' : ''); ?>><?php echo e($code->zipcode); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <option value=""><?php echo e(translate('no_zip_to_deliver')); ?></option> <?php endif; ?> </select> <?php else: ?> <input type="text" class="form-control" value="<?php echo e($billing ? $billing->zip : ''); ?>" id="zip" name="zip" placeholder="<?php echo e(translate('ex').': 1216'); ?>" <?php echo e($billing?'required':''); ?>> <?php endif; ?> </div> </div> <div class="col-12"> <div class="form-group"> <label for="address" class="form-label"><?php echo e(translate('address')); ?></label> <textarea name="address" id="billing_address" rows="3" class="form-control" placeholder="<?php echo e(translate('ex')); ?> : <?php echo e(translate('street_1,_street_2,_street_3,_street_4')); ?>"><?php echo e($billing ? $billing->address : ''); ?></textarea> </div> </div> <input type="hidden" id="billing_latitude" name="latitude" class="form-control d-inline" placeholder="<?php echo e(translate('ex')); ?> : -94.22213" value="<?php echo e($billing->latitude ?? 0); ?>" required readonly> <input type="hidden" name="longitude" class="form-control" placeholder="<?php echo e(translate('ex')); ?> : 103.344322" id="billing_longitude" value="<?php echo e($billing->longitude ?? 0); ?>" required readonly> <?php if(getWebConfig('map_api_status') ==1 ): ?> <div class="col-12 "> <input id="billing-pac-input" class="form-control rounded w-200 mt-1" title="<?php echo e(translate('search_your_location_here')); ?>" type="text" placeholder="<?php echo e(translate('search_here')); ?>"/> <div class="rounded w-100 h-200 mb-2" id="location_map_canvas_billing"></div> </div> <?php endif; ?> <div class="col-12"> <div class="d-flex justify-content-end gap-3"> <button type="button" class="btn btn-secondary px-5" data-bs-dismiss="modal"><?php echo e(translate('cancel')); ?></button> <button type="submit" class="btn btn-primary px-5"><?php echo e(translate('update')); ?></button> </div> </div> </div> </div> </form> </div> </div> </div> </div> </div> <?php endif; ?> <div class="modal fade" id="locationModal" tabindex="-1" role="dialog" aria-labelledby="locationModalLabel"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header border-0 pb-0 d-flex justify-content-end"> <h3 class="modal-title text-center flex-grow-1" id="locationModalLabel"><?php echo e(translate('location_on_Map')); ?></h3> <button type="button" class="btn-close border-0 btn-circle bg-section2 shadow-none" data-bs-dismiss="modal" aria-label="Close"> </button> </div> <div class="modal-body"> <div> <div class="row"> <div class="col-md-12 rounded border p-3"> <div class="h3 text-cyan-blue text-center"><?php echo e(translate('order')); ?> #<?php echo e($order->id); ?></div> <ul class="nav nav-tabs border-0 media-tabs nav-justified order-track-info"> <li class="nav-item"> <div class="nav-link active-status"> <div class="d-flex flex-sm-column gap-3 gap-sm-0"> <div class="media-tab-media mx-sm-auto mb-3"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/track-order/order-placed.png')); ?>" alt=""> </div> <div class="media-body"> <div class="text-sm-center text-start"> <h6 class="media-tab-title text-nowrap mb-0 text-capitalize fs-14"><?php echo e(translate('order_placed')); ?></h6> </div> <div class="d-flex align-items-center justify-content-sm-center gap-1 mt-2"> <span class="text-muted fs-12"><?php echo e(date('h:i A, d M Y',strtotime($order->created_at))); ?></span> </div> </div> </div> </div> </li> <?php if($order['order_status']!='returned' && $order['order_status']!='failed' && $order['order_status']!='canceled'): ?> <?php if(!$isOrderOnlyDigital): ?> <li class="nav-item "> <div class="nav-link <?php echo e(($order['order_status']=='confirmed') || ($order['order_status']=='processing') || ($order['order_status']=='processed') || ($order['order_status']=='out_for_delivery') || ($order['order_status']=='delivered')?'active-status' : ''); ?>"> <div class="d-flex flex-sm-column gap-3 gap-sm-0"> <div class="media-tab-media mb-3 mx-sm-auto"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/track-order/order-confirmed.png')); ?>" alt=""> </div> <div class="media-body"> <div class="text-sm-center text-start"> <h6 class="media-tab-title text-nowrap mb-0 text-capitalize fs-14"><?php echo e(translate('order_confirmed')); ?></h6> </div> <?php if(($order['order_status']=='confirmed') || ($order['order_status']=='processing') || ($order['order_status']=='processed') || ($order['order_status']=='out_for_delivery') || ($order['order_status']=='delivered') && \App\Utils\order_status_history($order['id'],'confirmed')): ?> <div class="d-flex align-items-center justify-content-sm-center mt-2 gap-1"> <span class="text-muted fs-12"> <?php echo e(date('h:i A, d M Y',strtotime(\App\Utils\order_status_history($order['id'],'confirmed')))); ?> </span> </div> <?php endif; ?> </div> </div> </div> </li> <li class="nav-item"> <div class="nav-link <?php echo e(($order['order_status']=='processing') || ($order['order_status']=='processed') || ($order['order_status']=='out_for_delivery') || ($order['order_status']=='delivered')?'active-status' : ''); ?>"> <div class="d-flex flex-sm-column gap-3 gap-sm-0"> <div class="media-tab-media mb-3 mx-sm-auto"> <img alt="" src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/track-order/shipment.png')); ?>"> </div> <div class="media-body"> <div class="text-sm-center text-start"> <h6 class="media-tab-title text-nowrap mb-0 text-capitalize fs-14"> <?php echo e(translate('preparing_shipment')); ?> </h6> </div> <?php if( ($order['order_status']=='processing') || ($order['order_status']=='processed') || ($order['order_status']=='out_for_delivery') || ($order['order_status']=='delivered') && \App\Utils\order_status_history($order['id'],'processing')): ?> <div class="d-flex align-items-center justify-content-sm-center mt-2 gap-2"> <span class="text-muted fs-12"> <?php echo e(date('h:i A, d M Y',strtotime(\App\Utils\order_status_history($order['id'],'processing')))); ?> </span> </div> <?php endif; ?> </div> </div> </div> </li> <li class="nav-item"> <div class="nav-link <?php echo e(($order['order_status']=='out_for_delivery') || ($order['order_status']=='delivered')?'active-status' : ''); ?>"> <div class="d-flex flex-sm-column gap-3 gap-sm-0"> <div class="media-tab-media mb-3 mx-sm-auto"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/track-order/on-the-way.png')); ?>" alt=""> </div> <div class="media-body"> <div class="text-sm-center text-start"> <h6 class="media-tab-title text-nowrap mb-0 fs-14"><?php echo e(translate('order_is_on_the_way')); ?></h6> </div> <?php if( ($order['order_status']=='out_for_delivery') || ($order['order_status']=='delivered') && \App\Utils\order_status_history($order['id'],'out_for_delivery')): ?> <div class="d-flex align-items-center justify-content-sm-center mt-2 gap-2"> <span class="text-muted fs-12"> <?php echo e(date('h:i A, d M Y',strtotime(\App\Utils\order_status_history($order['id'],'out_for_delivery')))); ?> </span> </div> <?php endif; ?> </div> </div> </div> </li> <li class="nav-item"> <div class="nav-link <?php echo e(($order['order_status']=='delivered')?'active-status' : ''); ?>"> <div class="d-flex flex-sm-column gap-3 gap-sm-0"> <div class="media-tab-media mb-3 mx-sm-auto"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/track-order/delivered.png')); ?>" alt=""> </div> <div class="media-body"> <div class="text-sm-center text-start"> <h6 class="media-tab-title text-nowrap mb-0 fs-14"><?php echo e(translate('order_Shipped')); ?></h6> </div> <?php if(($order['order_status']=='delivered') && \App\Utils\order_status_history($order['id'],'delivered')): ?> <div class="d-flex align-items-center justify-content-sm-center mt-2 gap-2"> <span class="text-muted fs-12"> <?php echo e(date('h:i A, d M Y',strtotime(\App\Utils\order_status_history($order['id'],'delivered')))); ?> </span> </div> <?php endif; ?> </div> </div> </div> </li> <?php else: ?> <?php $digitalProductProcessComplete = true; foreach ($order->orderDetails as $detail) { $productData = json_decode($detail->product_details, true); if (isset($productData->digital_product_type) && $productData->digital_product_type == 'ready_after_sell' && $detail->digital_file_after_sell == null) { $digitalProductProcessComplete = false; } } ?> <li class="nav-item"> <div class="nav-link <?php echo e(($order['order_status']=='confirmed') ? 'active-status' : ''); ?>"> <div class="d-flex flex-sm-column gap-3 gap-sm-0"> <div class="media-tab-media mb-3 mx-sm-auto"> <img alt="" src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/track-order/shipment.png')); ?>"> </div> <div class="media-body"> <div class="text-sm-center text-start"> <h6 class="media-tab-title text-nowrap mb-0 text-capitalize fs-14"> <?php echo e(translate('processing')); ?> </h6> </div> <?php if($order['order_status']=='confirmed' && \App\Utils\order_status_history($order['id'],'confirmed')): ?> <div class="d-flex align-items-center justify-content-sm-center mt-2 gap-2"> <span class="text-muted fs-12"> <?php echo e(date('h:i A, d M Y',strtotime(\App\Utils\order_status_history($order['id'],'confirmed')))); ?> </span> </div> <?php endif; ?> </div> </div> </div> </li> <li class="nav-item"> <div class="nav-link <?php echo e(($order['order_status']=='confirmed' && $digitalProductProcessComplete)?'active-status' : ''); ?>"> <div class="d-flex flex-sm-column gap-3 gap-sm-0"> <div class="media-tab-media mb-3 mx-sm-auto"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/track-order/delivered.png')); ?>" alt=""> </div> <div class="media-body"> <div class="text-sm-center text-start"> <h6 class="media-tab-title text-nowrap mb-0 fs-14"><?php echo e(translate('delivery_complete')); ?></h6> </div> <?php if(($order['order_status']=='confirmed') && $digitalProductProcessComplete && \App\Utils\order_status_history($order['id'],'confirmed')): ?> <div class="d-flex align-items-center justify-content-sm-center mt-2 gap-2"> <span class="text-muted fs-12"> <?php echo e(date('h:i A, d M Y',strtotime(\App\Utils\order_status_history($order['id'],'confirmed')))); ?> </span> </div> <?php endif; ?> </div> </div> </div> </li> <?php endif; ?> <?php elseif(in_array($order['order_status'], ['returned', 'canceled'])): ?> <li class="nav-item"> <div class="nav-link active-status"> <div class="d-flex flex-sm-column gap-3 gap-sm-0"> <div class="media-tab-media mx-sm-auto mb-3"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/track-order/'.$order['order_status'].'.png')); ?>" alt=""> </div> <div class="media-body"> <div class="text-sm-center text-start"> <h6 class="media-tab-title text-nowrap mb-0 text-capitalize fs-14"> <?php echo e(translate('order')); ?> <?php echo e(translate($order['order_status'])); ?> </h6> </div> <?php if(\App\Utils\order_status_history($order['id'], $order['order_status'])): ?> <div class="d-flex align-items-center justify-content-sm-center gap-1 mt-2"> <span class="text-muted fs-12"> <?php echo e(date('h:i A, d M Y', strtotime(\App\Utils\order_status_history($order['id'], $order['order_status'])))); ?> </span> </div> <?php endif; ?> </div> </div> </div> </li> <?php else: ?> <li class="nav-item"> <div class="nav-link active-status"> <div class="d-flex flex-sm-column gap-3 gap-sm-0"> <div class="media-tab-media mx-sm-auto mb-3"> <img src="<?php echo e(dynamicAsset(path: 'public/assets/new/back-end/img/track-order/order-failed.png')); ?>" alt=""> </div> <div class="media-body"> <div class="text-sm-center text-start"> <h6 class="media-tab-title text-nowrap mb-0 text-capitalize fs-14"><?php echo e(translate('Failed_to_Deliver')); ?></h6> </div> <div class="d-flex align-items-center justify-content-sm-center gap-1 mt-2"> <span class="text-muted fs-12"> <?php echo e(translate('sorry_we_can_not_complete_your_order')); ?> </span> </div> </div> </div> </div> </li> <?php endif; ?> </ul> </div> <div class="col-md-12 modal_body_map mt-5 pl-0 pr-0"> <div class="mb-2"> <img src="<?php echo e(dynamicAsset('assets/new/back-end/img/location-blue.png')); ?>" alt=""> <span><?php echo e($shippingAddress ? $shippingAddress->address : ($billing ? $billing->address : '')); ?></span> </div> <?php if(getWebConfig('map_api_status') ==1 ): ?> <div class="location-map" id="location-map"> <div class="w-100 h-200" id="location_map_canvas"></div> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div> <div class="modal" id="third_party_delivery_service_modal" role="dialog" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title"><?php echo e(translate('update_third_party_delivery_info')); ?></h5> <button type="button" class="btn-close border-0 btn-circle bg-section2 shadow-none" data-bs-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="row"> <div class="col-12"> <form action="<?php echo e(route('admin.orders.update-deliver-info')); ?>" method="POST"> <?php echo csrf_field(); ?> <input type="hidden" name="order_id" value="<?php echo e($order['id']); ?>"> <div class="card-body"> <div class="form-group"> <label for=""><?php echo e(translate('delivery_service_name')); ?></label> <input class="form-control" type="text" name="delivery_service_name" value="<?php echo e($order['delivery_service_name']); ?>" id="" required> </div> <div class="form-group"> <label for=""><?php echo e(translate('tracking_id')); ?> (<?php echo e(translate('optional')); ?>)</label> <input class="form-control" type="text" name="third_party_delivery_tracking_id" value="<?php echo e($order['third_party_delivery_tracking_id']); ?>" id=""> </div> <button class="btn btn-primary" type="submit"><?php echo e(translate('update')); ?></button> </div> </form> </div> </div> </div> </div> </div> </div> <span id="message-status-title-text" data-text="<?php echo e($order['payment_method'] != 'cash_on_delivery' && $order['order_status']=='delivered' ? translate("Order_is_already_delivered_and_transaction_amount_has_been_disbursed_changing_status_can_be_the_reason_of_miscalculation") : translate("are_you_sure_change_this")); ?>"></span> <span id="message-status-subtitle-text" data-text="<?php echo e($order['payment_method'] != 'cash_on_delivery' && $order['order_status']=='delivered' ? translate('think_before_you_proceed') : translate("you_will_not_be_able_to_revert_this")); ?>!"></span> <span id="payment-status-message" data-title="<?php echo e(translate('confirm_payments_before_change_the_status').'.'); ?>" data-message="<?php echo e(translate('Change the status to Paid only when you receive the customers payment and have verified it.')); ?>"></span> <span id="message-status-confirm-text" data-text="<?php echo e(translate("yes_change_it")); ?>!"></span> <span id="message-status-cancel-text" data-text="<?php echo e(translate("cancel")); ?>"></span> <span id="message-status-success-text" data-text="<?php echo e(translate("status_change_successfully")); ?>"></span> <span id="message-status-warning-text" data-text="<?php echo e(translate("account_has_been_deleted_you_can_not_change_the_status")); ?>"></span> <span id="message-order-status-delivered-text" data-text="<?php echo e(translate("order_is_already_delivered_you_can_not_change_it")); ?>!"></span> <span id="message-order-status-paid-first-text" data-text="<?php echo e(translate("before_delivered_you_need_to_make_payment_status_paid")); ?>!"></span> <span id="order-status-url" data-url="<?php echo e(route('admin.orders.status')); ?>"></span> <span id="payment-status-url" data-url="<?php echo e(route('admin.orders.payment-status')); ?>"></span> <span id="message-deliveryman-add-success-text" data-text="<?php echo e(translate("delivery_man_successfully_assigned/changed")); ?>"></span> <span id="message-deliveryman-add-error-text" data-text="<?php echo e(translate("deliveryman_man_can_not_assign_or_change_in_that_status")); ?>"></span> <span id="message-deliveryman-add-invalid-text" data-text="<?php echo e(translate("deliveryman_man_can_not_assign_or_change_in_that_status")); ?>"></span> <span id="delivery-type" data-type="<?php echo e($order->delivery_type); ?>"></span> <span id="add-delivery-man-url" data-url="<?php echo e(url('/admin/orders/add-delivery-man/'.$order['id'])); ?>/"></span> <span id="message-deliveryman-charge-success-text" data-text="<?php echo e(translate("deliveryman_charge_add_successfully")); ?>"></span> <span id="message-deliveryman-charge-error-text" data-text="<?php echo e(translate("failed_to_add_deliveryman_charge")); ?>"></span> <span id="message-deliveryman-charge-invalid-text" data-text="<?php echo e(translate("add_valid_data")); ?>"></span> <span id="add-date-update-url" data-url="<?php echo e(route('admin.orders.amount-date-update')); ?>"></span> <span id="customer-name" data-text="<?php echo e($order->customer['f_name']??""); ?> <?php echo e($order->customer['l_name']??""); ?>}"></span> <span id="is-shipping-exist" data-status="<?php echo e($shippingAddress ? 'true':'false'); ?>"></span> <span id="shipping-address" data-text="<?php echo e($shippingAddress->address??''); ?>"></span> <span id="shipping-latitude" data-latitude="<?php echo e($shippingAddress->latitude??'-33.8688'); ?>"></span> <span id="shipping-longitude" data-longitude="<?php echo e($shippingAddress->longitude??'151.2195'); ?>"></span> <span id="billing-latitude" data-latitude="<?php echo e($billing->latitude??'-33.8688'); ?>"></span> <span id="billing-longitude" data-longitude="<?php echo e($billing->longitude??'151.2195'); ?>"></span> <span id="location-icon" data-path="<?php echo e(dynamicAsset(path: 'public/assets/front-end/img/customer_location.png')); ?>"></span> <span id="customer-image" data-path="<?php echo e(dynamicStorage(path: 'storage/app/public/profile/')); ?><?php echo e($order->customer->image??""); ?>"></span> <span id="deliveryman-charge-alert-message" data-message="<?php echo e(translate('when_order_status_delivered_you_can`t_update_the_delivery_man_incentive').'.'); ?>"></span> <span id="payment-status-alert-message" data-message="<?php echo e(translate('when_payment_status_paid_then_you_can`t_change_payment_status_paid_to_unpaid').'.'); ?>"></span> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <?php if(getWebConfig('map_api_status') == 1): ?> <script src="https://maps.googleapis.com/maps/api/js?key=<?php echo e(getWebConfig('map_api_key')); ?>&callback=mapCallBackFunction&loading=async&libraries=places&v=3.56" defer> </script> <?php endif; ?> <script src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/js/admin/order.js')); ?>"></script> <?php $__env->stopPush(); ?> <?php echo $__env->make('layouts.admin.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/pollibazaar/public_html/resources/views/admin-views/order/order-details.blade.php ENDPATH**/ ?>
Coded With 💗 by
0x6ick