| Server IP : 103.161.17.216 / Your IP : 216.73.216.1 Web Server : nginx/1.18.0 System : Linux tipsysaigoncharming 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/applehotel.vn/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('admin_content'); ?>
<div class="table-agile-info">
<div class="panel panel-default">
<div class="panel-heading">
Thông tin khách hàng
</div>
<div class="table-responsive">
<?php
$message = Session::get('message');if ($message) {
echo '<span class="text-alert">',$message,'</span>';
Session::put('message',null);
// code...
}
?>
<table class="table table-striped b-t b-light">
<thead>
<tr>
<th>Tên Khách Hàng </th>
<th>Số điện thoại</th>
<th>Email</th>
<th style="width:30px;"></th>
</tr>
</thead>
<tbody>
<tr>
<?php if($customer==null): ?>
<td>Không có tài khoản</td>
<?php else: ?>
<td><?php echo e($customer->customer_name); ?></td>
<td><?php echo e($customer->customer_phone); ?></td>
<td><?php echo e($customer->customer_email); ?></td>
<?php endif; ?>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<br></br>
<div class="table-agile-info">
<div class="panel panel-default">
<div class="panel-heading">
Thông tin chuyển hàng
</div>
<div class="table-responsive">
<?php
$message = Session::get('message');if ($message) {
echo '<span class="text-alert">',$message,'</span>';
Session::put('message',null);
// code...
}
?>
<table class="table table-striped b-t b-light">
<thead>
<tr>
<th>Tên Khách Hàng </th>
<th>Địa Chỉ </th>
<th>Số điện thoại</th>
<th>Địa Chỉ Email</th>
<th>Ghi Chú đơn hàng</th>
<th>Hình thức thanh toán</th>
<th style="width:30px;"></th>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo e($shipping->shipping_name); ?></td>
<td><?php echo e($shipping->shipping_address); ?></td>
<td><?php echo e($shipping->shipping_phone); ?></td>
<td><?php echo e($shipping->shipping_email); ?></td>
<td><?php echo e($shipping->shipping_notes); ?></td>
<td><?php echo e($shipping->shipping_method); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<br></br>
<div class="table-agile-info">
<div class="panel panel-default">
<div class="panel-heading">
Liệt kê chi tiết đơn hàng
</div>
<div class="row w3-res-tb">
<div class="col-sm-5 m-b-xs">
<select class="input-sm form-control w-sm inline v-middle">
<option value="0">Bulk action</option>
<option value="1">Delete selected</option>
<option value="2">Bulk edit</option>
<option value="3">Export</option>
</select>
<button class="btn btn-sm btn-default">Apply</button>
</div>
<div class="col-sm-4">
</div>
<div class="col-sm-3">
<div class="input-group">
<input type="text" class="input-sm form-control" placeholder="Search">
<span class="input-group-btn">
<button class="btn btn-sm btn-default" type="button">Go!</button>
</span>
</div>
</div>
</div>
<div class="table-responsive">
<?php
$message = Session::get('message');if ($message) {
echo '<span class="text-alert">',$message,'</span>';
Session::put('message',null);
// code...
}
?>
<table class="table table-striped b-t b-light">
<thead>
<tr>
<th>STT </th>
<th>Tên sản phẩm </th>
<TH>Mã hàng</th>
<th> Số Lượng Tồn Kho</th>
<th>Số lượng </th>
<th>Giá</th>
<th>Tổng tiền </th>
</tr>
</thead>
<tbody>
<?php
$total=0;
$i=0;
?>
<?php $__currentLoopData = $order_details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $ord_details): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($i+=1); ?></td>
<td><?php echo e($ord_details->product_name); ?></td>
<td><?php echo e($ord_details->product_sku); ?></td>
<?php $__currentLoopData = $sku_qty; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $sku_q): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($sku_q->product_sku==$ord_details->product_sku): ?>
<td> <?php echo e($sku_q->product_quantity); ?> </td> <?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<td><input type="number" min="1" class="order_qty_<?php echo e($ord_details->product_id); ?>" name="product_sales_quantity" value="<?php echo e($ord_details->product_sales_quantity); ?>">
<input type="hidden" name= "order_product_id" class="order_product_id" value="<?php echo e($ord_details->product_id); ?>">
<button class="btn-sm btn-default update_quantity_order" name="update_quantity_order"> Cập Nhật</button>
</td>
<td><?php echo e(number_format($ord_details->product_price,0,',','.')); ?>đ</td>
<?php
$subtotal= $ord_details->product_sales_quantity *$ord_details->product_price ;
$total+=$subtotal;
?>
<td> <?php echo e(number_format($subtotal,0,',','.')); ?>đ</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<tr><td> Tổng giá trị đơn hàng <?php echo e(number_format($total,0,',','.')); ?>đ</td>
<td>Phí vẫn chuyển <?php echo e(number_format($ord_details->product_feeship,0,',','.')); ?>đ</td>
<td> <?php if($coupon): ?>
<?php if($coupon['coupon_condition']==1): ?>
<li>Mã Giảm:<span> <?php echo e($coupon['coupon_number']); ?>%</span></li>
<p>
<?php
$total_coupon = $total*$coupon['coupon_number']/100;
echo '<p> <li>Tổng tiền giảm <span>: '.number_format($total_coupon,0,',','.').'đ</span></li></p>';
?>
</p>
<?php elseif($coupon['coupon_condition']==2): ?>
<li>Tiền giảm<span> <?php echo e(number_format($coupon['coupon_number'],0,',','.')); ?>đ</span></li>
<p>
<?php
$total_coupon = $coupon['coupon_number'];
?>
</p>
<?php endif; ?>
<?php else: ?>
<?php
$total_coupon =0; echo 'Không Có Mã Giảm';
?>
<?php endif; ?>
</td>
<?php
$endtotal= $total-$total_coupon +$ord_details->product_feeship;
?>
<td colspan="2"> <p> <li style="font-weight:bold;font-size: 16px;">Thành tiền : <?php echo e(number_format($endtotal,0,',','.')); ?>đ </li></p> <td>
</tr>
<td colspan="6">
<?php $__currentLoopData = $order; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $or): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($or->order_status==1): ?>
<form>
<select class="form-control order_details">
<option value=""> ----Chọn tình trạng đơn hàng---- </option>
<option id="<?php echo e($or->order_id); ?>" selected value="1">Chưa xử lý </option>
<option id="<?php echo e($or->order_id); ?>"value="2">Đã xử lý - Giao Hàng</option>
<option id="<?php echo e($or->order_id); ?>"value="3">Hũy Đơn Hàng</option>
</select>
</form>
<?php elseif($or->order_status==2): ?>
<form>
<select class="form-control order_details">
<option value=""> ----Chọn tình trạng đơn hàng---- </option>
<option id="<?php echo e($or->order_id); ?>" value="1">Chưa xử lý </option>
<option id="<?php echo e($or->order_id); ?>" selected value="2">Đã xử lý - Giao Hàng</option>
<option id="<?php echo e($or->order_id); ?>" value="3">Hũy Đơn Hàng</option>
</select>
</form>
<?php else: ?>
<form>
<select class="form-control order_details">
<option value=""> ----Chọn tình trạng đơn hàng---- </option>
<option id="<?php echo e($or->order_id); ?>" value="1">Chưa xử lý </option>
<option id="<?php echo e($or->order_id); ?>" value="2">Đã xử lý - Giao Hàng</option>
<option id="<?php echo e($or->order_id); ?>"selected value="3">Hũy Đơn Hàng</option>
</select>
</form>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</td>
</tbody>
</table>
<br><i class="fa fa-print"></i><a href="<?php echo e(url('/print-order/'.$ord_details->order_code)); ?>"> In hóa đơn</a><br>
</div>
<footer class="panel-footer">
<div class="row">
<div class="col-sm-5 text-center">
<small class="text-muted inline m-t-sm m-b-sm">showing 20-30 of 50 items</small>
</div>
<div class="col-sm-7 text-right text-center-xs">
<ul class="pagination pagination-sm m-t-none m-b-none">
<li><a href=""><i class="fa fa-chevron-left"></i></a></li>
<li><a href="">1</a></li>
<li><a href="">2</a></li>
<li><a href="">3</a></li>
<li><a href="">4</a></li>
<li><a href=""><i class="fa fa-chevron-right"></i></a></li>
</ul>
</div>
</div>
</footer>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /opt/lampp/htdocs/charming.vn/resources/views/admin/order/view_order.blade.php ENDPATH**/ ?>