79da214dfa6ac41bfaa550a8581f4c28cc7a1090.php 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. <?php $__env->startSection('panel_content'); ?>
  2. <script src='/My97DatePicker/WdatePicker.js'></script>
  3. <div class="card">
  4. <div class="card-header">
  5. <h1 class="h2 fs-16 mb-0"><?php echo e(translate('Order Details')); ?></h1>
  6. </div>
  7. <div class="card-body">
  8. <div class="row gutters-3">
  9. <div class="col text-md-left text-center">
  10. </div>
  11. <?php
  12. $delivery_status = $order->delivery_status;
  13. $payment_status = $order->payment_status;
  14. ?>
  15. <?php if($order->product_storehouse_total > 0): ?>
  16. <?php if(!$order->freeze_expired_at): ?>
  17. <div class="col-md-2 d-flex flex-nowrap justify-content-end align-items-end ml-auto">
  18. <button type="button" class="btn btn-primary" disabled><?php echo e(translate('Free up frozen funds')); ?></button>
  19. </div>
  20. <?php else: ?>
  21. <div class="col-md-2 d-flex flex-nowrap justify-content-end align-items-end ml-auto">
  22. <button id="free_up_btn" type="button" class="btn btn-primary confirm-alert" data-href="<?php echo e(route('product-storehouse-order-free-up', $order->id)); ?>" data-target="#free-up-modal"><?php echo e(translate('Free up frozen funds')); ?></button>
  23. </div>
  24. <?php endif; ?>
  25. <?php if($order->product_storehouse_status): ?>
  26. <div class="col-md-2 d-flex flex-nowrap justify-content-end align-items-end ml-auto">
  27. <button type="button" class="btn btn-info" disabled><?php echo e(translate('Picked up')); ?></button>
  28. </div>
  29. <?php else: ?>
  30. <div class="col-md-2 d-flex flex-nowrap justify-content-end align-items-end ml-auto">
  31. <button type="button" class="btn btn-info" disabled><?php echo e(translate('Unpaid')); ?></button>
  32. </div>
  33. <?php endif; ?>
  34. <?php endif; ?>
  35. <!--Assign Delivery Boy-->
  36. <?php if(addon_is_activated('delivery_boy')): ?>
  37. <div class="col-md-3 ml-auto">
  38. <label for="assign_deliver_boy"><?php echo e(translate('Assign Deliver Boy')); ?></label>
  39. <?php if($delivery_status == 'pending' || $delivery_status == 'confirmed' || $delivery_status == 'picked_up'): ?>
  40. <select class="form-control aiz-selectpicker" data-live-search="true"
  41. data-minimum-results-for-search="Infinity" id="assign_deliver_boy">
  42. <option value=""><?php echo e(translate('Select Delivery Boy')); ?></option>
  43. <?php $__currentLoopData = $delivery_boys; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $delivery_boy): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  44. <option value="<?php echo e($delivery_boy->id); ?>"
  45. <?php if($order->assign_delivery_boy == $delivery_boy->id): ?> selected <?php endif; ?>>
  46. <?php echo e($delivery_boy->name); ?>
  47. </option>
  48. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  49. </select>
  50. <?php else: ?>
  51. <input type="text" class="form-control" value="<?php echo e(optional($order->delivery_boy)->name); ?>"
  52. disabled>
  53. <?php endif; ?>
  54. </div>
  55. <?php endif; ?>
  56. <div class="col-md-3 ml-auto">
  57. <label for="update_payment_status"><?php echo e(translate('Payment Status')); ?></label>
  58. <select class="form-control aiz-selectpicker" data-minimum-results-for-search="Infinity"
  59. id="update_payment_status">
  60. <option value="unpaid" <?php if($payment_status == 'unpaid'): ?> selected <?php endif; ?>><?php echo e(translate('Unpaid')); ?>
  61. </option>
  62. <option value="paid" <?php if($payment_status == 'paid'): ?> selected <?php endif; ?>><?php echo e(translate('Paid')); ?>
  63. </option>
  64. </select>
  65. </div>
  66. <div class="col-md-3 ml-auto">
  67. <label for="update_delivery_status"><?php echo e(translate('Delivery Status')); ?></label>
  68. <?php if($delivery_status != 'delivered' && $delivery_status != 'cancelled'): ?>
  69. <select class="form-control aiz-selectpicker" data-minimum-results-for-search="Infinity"
  70. id="update_delivery_status">
  71. <option value="pending" <?php if($delivery_status == 'pending'): ?> selected <?php endif; ?>>
  72. <?php echo e(translate('Pending')); ?></option>
  73. <option value="confirmed" <?php if($delivery_status == 'confirmed'): ?> selected <?php endif; ?>>
  74. <?php echo e(translate('Confirmed')); ?></option>
  75. <option value="picked_up" <?php if($delivery_status == 'picked_up'): ?> selected <?php endif; ?>>
  76. <?php echo e(translate('Picked Up')); ?></option>
  77. <option value="on_the_way" <?php if($delivery_status == 'on_the_way'): ?> selected <?php endif; ?>>
  78. <?php echo e(translate('On The Way')); ?></option>
  79. <option value="delivered" <?php if($delivery_status == 'delivered'): ?> selected <?php endif; ?>>
  80. <?php echo e(translate('Delivered')); ?></option>
  81. <option value="cancelled" <?php if($delivery_status == 'cancelled'): ?> selected <?php endif; ?>>
  82. <?php echo e(translate('Cancel')); ?></option>
  83. </select>
  84. <?php else: ?>
  85. <input type="text" class="form-control" value="<?php echo e($delivery_status); ?>" disabled>
  86. <?php endif; ?>
  87. </div>
  88. <div class="col-md-3 ml-auto">
  89. <label for="update_tracking_code"><?php echo e(translate('Tracking Code (optional)')); ?></label>
  90. <input type="text" class="form-control" id="update_tracking_code"
  91. value="<?php echo e($order->tracking_code); ?>">
  92. </div>
  93. </div>
  94. <div class="mb-3">
  95. <?php
  96. $removedXML = '<?xml version="1.0" encoding="UTF-8"';
  97. ?>
  98. <?php echo str_replace([$removedXML, '?>'], '', QrCode::size(100)->generate($order->code)); ?>
  99. </div>
  100. <div class="row gutters-5">
  101. <div class="col text-md-left text-center">
  102. <?php if(json_decode($order->shipping_address)): ?>
  103. <address>
  104. <strong class="text-main">
  105. <?php echo e(json_decode($order->shipping_address)->name); ?>
  106. </strong><br>
  107. <?php echo e(json_decode($order->shipping_address)->email); ?><br>
  108. <?php echo e(json_decode($order->shipping_address)->phone); ?><br>
  109. <?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)->postal_code); ?><br>
  110. <?php echo e(json_decode($order->shipping_address)->country); ?>
  111. </address>
  112. <?php else: ?>
  113. <address>
  114. <strong class="text-main">
  115. <?php echo e($order->user->name); ?>
  116. </strong><br>
  117. <?php echo e($order->user->email); ?><br>
  118. <?php echo e($order->user->phone); ?><br>
  119. </address>
  120. <?php endif; ?>
  121. <?php if($order->manual_payment && is_array(json_decode($order->manual_payment_data, true))): ?>
  122. <br>
  123. <strong class="text-main"><?php echo e(translate('Payment Information')); ?></strong><br>
  124. <?php echo e(translate('Name')); ?>: <?php echo e(json_decode($order->manual_payment_data)->name); ?>,
  125. <?php echo e(translate('Amount')); ?>:
  126. <?php echo e(single_price(json_decode($order->manual_payment_data)->amount)); ?>,
  127. <?php echo e(translate('TRX ID')); ?>: <?php echo e(json_decode($order->manual_payment_data)->trx_id); ?>
  128. <br>
  129. <a href="<?php echo e(uploaded_asset(json_decode($order->manual_payment_data)->photo)); ?>"
  130. target="_blank"><img
  131. src="<?php echo e(uploaded_asset(json_decode($order->manual_payment_data)->photo)); ?>" alt=""
  132. height="100"></a>
  133. <?php endif; ?>
  134. </div>
  135. <div class="col-md-4 ml-auto">
  136. <table>
  137. <tbody>
  138. <tr>
  139. <td class="text-main text-bold"><?php echo e(translate('Order #')); ?></td>
  140. <td class="text-info text-bold text-right"> <?php echo e($order->code); ?></td>
  141. </tr>
  142. <tr>
  143. <td class="text-main text-bold"><?php echo e(translate('Order Status')); ?></td>
  144. <td class="text-right">
  145. <?php if($delivery_status == 'delivered'): ?>
  146. <span
  147. class="badge badge-inline badge-success"><?php echo e(translate(ucfirst(str_replace('_', ' ', $delivery_status)))); ?></span>
  148. <?php else: ?>
  149. <span
  150. class="badge badge-inline badge-info"><?php echo e(translate(ucfirst(str_replace('_', ' ', $delivery_status)))); ?></span>
  151. <?php endif; ?>
  152. </td>
  153. </tr>
  154. <tr>
  155. <td class="text-main text-bold"><?php echo e(translate('Order Date')); ?> </td>
  156. <td class="text-right"><?php echo e(date('d-m-Y h:i A', $order->date)); ?></td>
  157. </tr>
  158. <tr>
  159. <td class="text-main text-bold">
  160. <?php echo e(translate('Total amount')); ?>
  161. </td>
  162. <td class="text-right">
  163. <?php echo e(single_price($order->grand_total)); ?>
  164. </td>
  165. </tr>
  166. <tr>
  167. <td class="text-main text-bold"><?php echo e(translate('Payment method')); ?></td>
  168. <td class="text-right">
  169. <?php echo e(translate(ucfirst(str_replace('_', ' ', $order->payment_type)))); ?></td>
  170. </tr>
  171. <tr>
  172. <td class="text-main text-bold"><?php echo e(translate('Additional Info')); ?></td>
  173. <td class="text-right"><?php echo e($order->additional_info); ?></td>
  174. </tr>
  175. </tbody>
  176. </table>
  177. </div>
  178. </div>
  179. <hr class="new-section-sm bord-no">
  180. <div class="row">
  181. <div class="col-lg-12 table-responsive">
  182. <table class="table-bordered aiz-table invoice-summary table">
  183. <thead>
  184. <tr class="bg-trans-dark">
  185. <th data-breakpoints="lg" class="min-col">#</th>
  186. <th width="10%"><?php echo e(translate('Photo')); ?></th>
  187. <th class="text-uppercase"><?php echo e(translate('Description')); ?></th>
  188. <th data-breakpoints="lg" class="text-uppercase"><?php echo e(translate('Delivery Type')); ?></th>
  189. <th data-breakpoints="lg" class="min-col text-uppercase text-center">
  190. <?php echo e(translate('Qty')); ?>
  191. </th>
  192. <th data-breakpoints="lg" class="min-col text-uppercase text-center">
  193. <?php echo e(translate('Price')); ?></th>
  194. <th data-breakpoints="lg" class="min-col text-uppercase text-right">
  195. <?php echo e(translate('Total')); ?></th>
  196. </tr>
  197. </thead>
  198. <tbody>
  199. <?php $__currentLoopData = $order->orderDetails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $orderDetail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  200. <tr>
  201. <td><?php echo e($key + 1); ?></td>
  202. <td>
  203. <?php if($orderDetail->product != null && $orderDetail->product->auction_product == 0): ?>
  204. <a href="<?php echo e(route('product', $orderDetail->product->slug)); ?>"
  205. target="_blank"><img height="50"
  206. src="<?php echo e(uploaded_asset($orderDetail->product->thumbnail_img)); ?>"></a>
  207. <?php elseif($orderDetail->product != null && $orderDetail->product->auction_product == 1): ?>
  208. <a href="<?php echo e(route('auction-product', $orderDetail->product->slug)); ?>"
  209. target="_blank"><img height="50"
  210. src="<?php echo e(uploaded_asset($orderDetail->product->thumbnail_img)); ?>"></a>
  211. <?php else: ?>
  212. <strong><?php echo e(translate('N/A')); ?></strong>
  213. <?php endif; ?>
  214. </td>
  215. <td>
  216. <?php if($orderDetail->product != null && $orderDetail->product->auction_product == 0): ?>
  217. <strong><a href="<?php echo e(route('product', $orderDetail->product->slug)); ?>"
  218. target="_blank"
  219. class="text-muted"><?php echo e($orderDetail->product->getTranslation('name')); ?></a></strong>
  220. <small><?php echo e($orderDetail->variation); ?></small>
  221. <?php elseif($orderDetail->product != null && $orderDetail->product->auction_product == 1): ?>
  222. <strong><a href="<?php echo e(route('auction-product', $orderDetail->product->slug)); ?>"
  223. target="_blank"
  224. class="text-muted"><?php echo e($orderDetail->product->getTranslation('name')); ?></a></strong>
  225. <?php else: ?>
  226. <strong><?php echo e(translate('Product Unavailable')); ?></strong>
  227. <?php endif; ?>
  228. </td>
  229. <td>
  230. <?php if($order->shipping_type != null && $order->shipping_type == 'home_delivery'): ?>
  231. <?php echo e(translate('Home Delivery')); ?>
  232. <?php elseif($order->shipping_type == 'pickup_point'): ?>
  233. <?php if($order->pickup_point != null): ?>
  234. <?php echo e($order->pickup_point->getTranslation('name')); ?>
  235. (<?php echo e(translate('Pickup Point')); ?>)
  236. <?php else: ?>
  237. <?php echo e(translate('Pickup Point')); ?>
  238. <?php endif; ?>
  239. <?php endif; ?>
  240. </td>
  241. <td class="text-center"><?php echo e($orderDetail->quantity); ?></td>
  242. <td class="text-center">
  243. <?php echo e(single_price($orderDetail->price / $orderDetail->quantity)); ?></td>
  244. <td class="text-center"><?php echo e(single_price($orderDetail->price)); ?></td>
  245. </tr>
  246. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  247. </tbody>
  248. </table>
  249. </div>
  250. </div>
  251. <div class="clearfix float-right">
  252. <table class="table">
  253. <tbody>
  254. <?php if($order->product_storehouse_total > 0): ?>
  255. <tr>
  256. <td>
  257. <strong class="text-muted"><?php echo e(translate('Storehouse Price')); ?> :</strong>
  258. </td>
  259. <td>
  260. <?php echo e(single_price($order->product_storehouse_total)); ?>
  261. </td>
  262. </tr>
  263. <tr>
  264. <td>
  265. <strong class="text-muted"><?php echo e(translate('Profit')); ?> :</strong>
  266. </td>
  267. <td>
  268. <?php echo e(single_price($order->grand_total - $order->product_storehouse_total)); ?>
  269. </td>
  270. </tr>
  271. <?php endif; ?>
  272. <tr>
  273. <td>
  274. <strong class="text-muted"><?php echo e(translate('Sub Total')); ?> :</strong>
  275. </td>
  276. <td>
  277. <?php echo e(single_price($order->orderDetails->sum('price'))); ?>
  278. </td>
  279. </tr>
  280. <tr>
  281. <td>
  282. <strong class="text-muted"><?php echo e(translate('Tax')); ?> :</strong>
  283. </td>
  284. <td>
  285. <?php echo e(single_price($order->orderDetails->sum('tax'))); ?>
  286. </td>
  287. </tr>
  288. <tr>
  289. <td>
  290. <strong class="text-muted"><?php echo e(translate('Shipping')); ?> :</strong>
  291. </td>
  292. <td>
  293. <?php echo e(single_price($order->orderDetails->sum('shipping_cost'))); ?>
  294. </td>
  295. </tr>
  296. <tr>
  297. <td>
  298. <strong class="text-muted"><?php echo e(translate('Coupon')); ?> :</strong>
  299. </td>
  300. <td>
  301. <?php echo e(single_price($order->coupon_discount)); ?>
  302. </td>
  303. </tr>
  304. <tr>
  305. <td>
  306. <strong class="text-muted"><?php echo e(translate('TOTAL')); ?> :</strong>
  307. </td>
  308. <td class="text-muted h5">
  309. <?php echo e(single_price($order->grand_total)); ?>
  310. </td>
  311. </tr>
  312. </tbody>
  313. </table>
  314. <div class="no-print text-right">
  315. <a href="<?php echo e(route('invoice.download', $order->id)); ?>" type="button" class="btn btn-icon btn-light"><i
  316. class="las la-print"></i></a>
  317. </div>
  318. </div>
  319. <style>
  320. #wuliu .form-control{ width:150px; display:inline-block; margin-top:10px;}
  321. #wuliu .btn-add{ margin-left:10px; width:50px;}
  322. </style>
  323. <?php error_reporting(0); ?>
  324. <div class="row gutters-5" id="wuliu">
  325. <div class="col-md-12 ml-auto" style="margin-top:10px;">
  326. <label for="update_tracking_code">物流信息</label>
  327. <!--<textarea class="form-control" id="update_shipping_info" rows="10"><?php echo e($order->shipping_info); ?></textarea> -->
  328. <div style="border:1px solid #f2f3f8; border-radius:10px;;padding:10px;margin-bottom:10px;" id="expessdiv">
  329. <form id="form1">
  330. <div class="dv">物流公司:<input type="text" class="form-control" name="express_name" value="<?php echo e($express->express_name); ?>" />
  331. <input type="hidden" name="order_id" value="<?php echo e($order->id); ?>" />
  332. </div>
  333. <div class="dv">物流单号:<input type="text" class="form-control" name="express_code" value="<?php echo e($express->express_code); ?>" />
  334. </div>
  335. <div class="dv">
  336. <br><br>
  337. 物流信息:<br><br>
  338. <div class="exp">
  339. <?php if( $express->express_info ): ?>
  340. <?php $__currentLoopData = $express->express_info; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $ex): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  341. 信息:<input type="text" class="form-control" name="express_info[]" value="<?php echo e($ex); ?>"/> &nbsp;&nbsp;快递时间:<input class="form-control" onclick="WdatePicker({dateFmt:'yyyy:MM:dd HH:mm:ss'})" readonly type="text" value="<?php echo e($express->express_stime[$key]); ?>" name="express_stime[]" />&nbsp;&nbsp;显示时间:<input class="form-control" onclick="WdatePicker({dateFmt:'yyyy:MM:dd HH:mm:ss'})" readonly type="text" value="<?php echo e($express->express_time[$key]); ?>" name="express_time[]" /><input type="button" value="+" onclick="addinfo()" class="btn btn-primary btn-add" />
  342. <br><br>
  343. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  344. <?php else: ?>
  345. 信息:<input type="text" class="form-control" name="express_info[]" value="<?php echo e($ex); ?>"/> &nbsp;&nbsp;&nbsp;&nbsp;显示时间:<input onclick="WdatePicker({dateFmt:'yyyy:MM:dd HH:mm:ss'})" readonly type="text" class="form-control" value="<?php echo e($express->express_stime[$key]); ?>" name="express_stime[]" />&nbsp;&nbsp;显示时间:<input onclick="WdatePicker({dateFmt:'yyyy:MM:dd HH:mm:ss'})" readonly type="text" class="form-control" value="<?php echo e($express->express_time[$key]); ?>" name="express_time[]" /><input type="button" value="+" onclick="addinfo()" class="btn btn-primary btn-add" />
  346. <br><br>
  347. <?php endif; ?>
  348. </div>
  349. </div>
  350. <br>
  351. <input type="button" value="保存物流信息" class="btn btn-info" onclick="save_express_info()" />
  352. </form>
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. <?php $__env->stopSection(); ?>
  359. <?php $__env->startSection('modal'); ?>
  360. <div id="free-up-modal" class="modal fade">
  361. <div class="modal-dialog modal-md modal-dialog-centered">
  362. <div class="modal-content">
  363. <div class="modal-header">
  364. <h4 class="modal-title h6"><?php echo e(translate('Free Up Of Freeze Funds Confirmation')); ?></h4>
  365. <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
  366. </div>
  367. <div class="modal-body text-center">
  368. <h5 class="mt-1 text-"><?php echo e(translate('Are you sure to free this up?')); ?></h5>
  369. <button type="button" class="btn btn-link mt-2" data-dismiss="modal"><?php echo e(translate('Cancel')); ?></button>
  370. <a href="" id="comfirm-link" class="btn btn-primary mt-2"><?php echo e(translate('Free Up')); ?></a>
  371. </div>
  372. </div>
  373. </div>
  374. </div>
  375. <?php $__env->stopSection(); ?>
  376. <?php $__env->startSection('script'); ?>
  377. <script type="text/javascript">
  378. function addinfo()
  379. {
  380. var html = '<div>信息:<input type="text" class="form-control" name="express_info[]" /> &nbsp;&nbsp;快递时间:<input class="form-control" type="text" onclick="WdatePicker({dateFmt:\'yyyy:MM:dd HH:mm:ss\'})" name="express_stime[]" readonly />&nbsp;&nbsp;显示时间:<input class="form-control" onclick="WdatePicker({dateFmt:\'yyyy:MM:dd HH:mm:ss\'})" readonly type="text" value="<?php echo e($express->express_time[$key]); ?>" name="express_time[]" /><input class="btn btn-primary btn-add" type="button" value="+" onclick="addinfo()" /></div>';
  381. $('.exp').append( html );
  382. }
  383. function save_express_info()
  384. {
  385. $.post('<?php echo e(route('orders.update_delivery_info')); ?>', {
  386. _token:'<?php echo e(@csrf_token()); ?>',
  387. data:$("#form1").serialize()
  388. }, function(data){
  389. alert( data )
  390. },'text');
  391. }
  392. $('#assign_deliver_boy').on('change', function() {
  393. var order_id = <?php echo e($order->id); ?>;
  394. var delivery_boy = $('#assign_deliver_boy').val();
  395. $.post('<?php echo e(route('orders.delivery-boy-assign')); ?>', {
  396. _token: '<?php echo e(@csrf_token()); ?>',
  397. order_id: order_id,
  398. delivery_boy: delivery_boy
  399. }, function(data) {
  400. AIZ.plugins.notify('success', '<?php echo e(translate('Delivery boy has been assigned')); ?>');
  401. });
  402. });
  403. $('#update_delivery_status').on('change', function() {
  404. var order_id = <?php echo e($order->id); ?>;
  405. var status = $('#update_delivery_status').val();
  406. $.post('<?php echo e(route('orders.update_delivery_status')); ?>', {
  407. _token: '<?php echo e(@csrf_token()); ?>',
  408. order_id: order_id,
  409. status: status
  410. }, function(data) {
  411. AIZ.plugins.notify('success', '<?php echo e(translate('Delivery status has been updated')); ?>');
  412. });
  413. });
  414. $('#update_payment_status').on('change', function() {
  415. var order_id = <?php echo e($order->id); ?>;
  416. var status = $('#update_payment_status').val();
  417. $.post('<?php echo e(route('orders.update_payment_status')); ?>', {
  418. _token: '<?php echo e(@csrf_token()); ?>',
  419. order_id: order_id,
  420. status: status
  421. }, function(data) {
  422. AIZ.plugins.notify('success', '<?php echo e(translate('Payment status has been updated')); ?>');
  423. });
  424. });
  425. $('#update_tracking_code').on('change', function() {
  426. var order_id = <?php echo e($order->id); ?>;
  427. var tracking_code = $('#update_tracking_code').val();
  428. $.post('<?php echo e(route('orders.update_tracking_code')); ?>', {
  429. _token: '<?php echo e(@csrf_token()); ?>',
  430. order_id: order_id,
  431. tracking_code: tracking_code
  432. }, function(data) {
  433. AIZ.plugins.notify('success', '<?php echo e(translate('Order tracking code has been updated')); ?>');
  434. });
  435. });
  436. </script>
  437. <?php $__env->stopSection(); ?>
  438. <?php echo $__env->make('salesman.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/salesman/orders/show.blade.php ENDPATH**/ ?>