2f1f0605eacc1ac4293a571a21526d45bc7ce508.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php $__env->startSection('content'); ?>
  2. <section class="pt-4 mb-4">
  3. <div class="container text-center">
  4. <div class="row">
  5. <div class="col-lg-6 text-center text-lg-left">
  6. <h1 class="fw-600 h4"><?php echo e(translate('Track Order')); ?></h1>
  7. </div>
  8. <div class="col-lg-6">
  9. <ul class="breadcrumb bg-transparent p-0 justify-content-center justify-content-lg-end">
  10. <li class="breadcrumb-item opacity-50">
  11. <a class="text-reset" href="<?php echo e(route('home')); ?>"><?php echo e(translate('Home')); ?></a>
  12. </li>
  13. <li class="text-dark fw-600 breadcrumb-item">
  14. <a class="text-reset" href="<?php echo e(route('orders.track')); ?>">"<?php echo e(translate('Track Order')); ?>"</a>
  15. </li>
  16. </ul>
  17. </div>
  18. </div>
  19. </div>
  20. </section>
  21. <section class="mb-5">
  22. <div class="container text-left">
  23. <div class="row">
  24. <div class="col-xxl-5 col-xl-6 col-lg-8 mx-auto">
  25. <form class="" action="<?php echo e(route('orders.track')); ?>" method="GET" enctype="multipart/form-data">
  26. <div class="bg-white rounded shadow-sm">
  27. <div class="fs-15 fw-600 p-3 border-bottom text-center">
  28. <?php echo e(translate('Check Your Order Status')); ?>
  29. </div>
  30. <div class="form-box-content p-3">
  31. <div class="form-group">
  32. <input type="text" class="form-control mb-3" placeholder="<?php echo e(translate('Order Code')); ?>" name="order_code" required>
  33. </div>
  34. <div class="text-center">
  35. <button type="submit" class="btn btn-primary"><?php echo e(translate('Track Order')); ?></button>
  36. </div>
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. </div>
  42. <?php if(isset($order)): ?>
  43. <div class="bg-white rounded shadow-sm mt-5">
  44. <div class="fs-15 fw-600 p-3 border-bottom">
  45. <?php echo e(translate('Order Summary')); ?>
  46. </div>
  47. <div class="p-3">
  48. <div class="row">
  49. <div class="col-lg-6">
  50. <table class="table table-borderless">
  51. <tr>
  52. <td class="w-50 fw-600"><?php echo e(translate('Order Code')); ?>:</td>
  53. <td><?php echo e($order->code); ?></td>
  54. </tr>
  55. <tr>
  56. <td class="w-50 fw-600"><?php echo e(translate('Customer')); ?>:</td>
  57. <td><?php echo e(json_decode($order->shipping_address)->name); ?></td>
  58. </tr>
  59. <tr>
  60. <td class="w-50 fw-600"><?php echo e(translate('Email')); ?>:</td>
  61. <?php if($order->user_id != null): ?>
  62. <td><?php echo e($order->user->email); ?></td>
  63. <?php endif; ?>
  64. </tr>
  65. <tr>
  66. <td class="w-50 fw-600"><?php echo e(translate('Shipping address')); ?>:</td>
  67. <td><?php echo e(json_decode($order->shipping_address)->address); ?>, <?php echo e(json_decode($order->shipping_address)->city); ?>, <?php echo e(json_decode($order->shipping_address)->country); ?></td>
  68. </tr>
  69. </table>
  70. </div>
  71. <div class="col-lg-6">
  72. <table class="table table-borderless">
  73. <tr>
  74. <td class="w-50 fw-600"><?php echo e(translate('Order date')); ?>:</td>
  75. <td><?php echo e(date('d-m-Y H:i A', $order->date)); ?></td>
  76. </tr>
  77. <tr>
  78. <td class="w-50 fw-600"><?php echo e(translate('Total order amount')); ?>:</td>
  79. <td><?php echo e(single_price($order->orderDetails->sum('price') + $order->orderDetails->sum('tax'))); ?></td>
  80. </tr>
  81. <tr>
  82. <td class="w-50 fw-600"><?php echo e(translate('Shipping method')); ?>:</td>
  83. <td><?php echo e(translate('Flat shipping rate')); ?></td>
  84. </tr>
  85. <tr>
  86. <td class="w-50 fw-600"><?php echo e(translate('Payment method')); ?>:</td>
  87. <td><?php echo e(translate(ucfirst(str_replace('_', ' ', $order->payment_type)))); ?></td>
  88. </tr>
  89. <tr>
  90. <td class="w-50 fw-600"><?php echo e(translate('Delivery Status')); ?>:</td>
  91. <td><?php echo e(translate(ucfirst(str_replace('_', ' ', $order->delivery_status)))); ?></td>
  92. </tr>
  93. <?php if($order->tracking_code): ?>
  94. <tr>
  95. <td class="w-50 fw-600"><?php echo e(translate('Tracking code')); ?>:</td>
  96. <td><?php echo e($order->tracking_code); ?></td>
  97. </tr>
  98. <?php endif; ?>
  99. </table>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <?php $__currentLoopData = $order->orderDetails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $orderDetail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  105. <?php
  106. $status = $order->delivery_status;
  107. ?>
  108. <div class="bg-white rounded shadow-sm mt-4">
  109. <?php if($orderDetail->product != null): ?>
  110. <div class="p-3">
  111. <table class="table">
  112. <thead>
  113. <tr>
  114. <th><?php echo e(translate('Product Name')); ?></th>
  115. <th><?php echo e(translate('Quantity')); ?></th>
  116. <th><?php echo e(translate('Shipped By')); ?></th>
  117. </tr>
  118. </thead>
  119. <tbody>
  120. <tr>
  121. <td><?php echo e($orderDetail->product->getTranslation('name')); ?> (<?php echo e($orderDetail->variation); ?>)</td>
  122. <td><?php echo e($orderDetail->quantity); ?></td>
  123. <td><?php echo e($orderDetail->product->user->name); ?></td>
  124. </tr>
  125. </tbody>
  126. </table>
  127. </div>
  128. <?php endif; ?>
  129. </div>
  130. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  131. <?php endif; ?>
  132. </div>
  133. </section>
  134. <?php $__env->stopSection(); ?>
  135. <?php echo $__env->make('frontend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/track_order.blade.php ENDPATH**/ ?>