| 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/huyhoangvn.com/resources/views/pages/checkout/ |
Upload File : |
@extends('layout')
@section('content')
<section id="cart_items">
<!-- <div class="container"> -->
<div class="breadcrumbs">
<ol class="breadcrumb">
<li><a href="{{URL::to('/')}}">Trang Chủ</a></li>
<li class="active">Thanh toán giỏ hàng</li>
</ol>
</div><!--/breadcrums-->
<div class="review-payment">
<h2>Xem lại & Thanh toán</h2>
</div>
<div class="table-responsive cart_info">
<?php
$content=Cart::content();
?>
<table class="table table-condensed">
<thead>
<tr class="cart_menu">
<td class="image">Hình Ảnh</td>
<td class="description">Mô tả</td>
<td class="price">Giá </td>
<td class="quantity">Số Lượng</td>
<td class="total">Tổng tiền</td>
<td></td>
</tr>
</thead>
<tbody>
@foreach ($content as $v_content)
<tr>
<td class="cart_product">
<a href=""><img src="{{URL::to('public/uploads/product/'.$v_content->options->image)}}" width="50" alt="" /> </a>
</td>
<td class="cart_description">
<h4><a href="">{{$v_content->name}}</a></h4>
<p>Web ID: 1089772</p>
</td>
<td class="cart_price">
<p>{{number_format($v_content ->price).' '.'VNĐ'}}</p>
</td>
<td class="cart_quantity">
<div class="cart_quantity_button">
<form action="{{URL::to('/update-cart-quantity')}}"method ="POST">
{{csrf_field()}}
<input class="cart_quantity_input" type="text" name="cart_quantity" value="{{$v_content->qty}}" >
<input type= "hidden" value="{{$v_content->rowId}}" name ="rowId_cart" class="form-control">
<input type= "submit" value="cập nhật" name ="update_qty" class="btn btn-default btn-sm">
</form>
</div>
</td>
<td class="cart_total">
<p class="cart_total_price">
<?php
$subtotal= $v_content->price * $v_content->qty;
echo number_format($subtotal).' '.'VNĐ';
?>
</p>
</td>
<td class="cart_delete">
<a class="cart_quantity_delete" href="{{URL::to('/delete-to-cart/'.$v_content->rowId)}}"><i class="fa fa-times"></i></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<H4 style ="margin: 40px 0; font-size: 20px;" > Chọn hình thức thanh toán</H4>
<form action="{{URL::to('/order-place')}}" method="POST">
{{csrf_field()}}
<div class="payment-options">
<span>
<label><input name="payment_option" value="1" type="checkbox"> Chuyển khoản</label>
</span>
<span>
<label><input name="payment_option" value="2" type="checkbox"> Tiền mặt</label>
</span>
<span>
<label><input name="payment_option" value="3" type="checkbox"> Ví điện tử momo </label>
</span>
<input type= "submit" value="Đặt Hàng" name ="send_order_place" class="btn btn-primary btn-sm">
<!-- <span>
<label><input type="checkbox"> Paypal</label>
</span> -->
</form>
</div>
<!-- </div> -->
</section> <!--/#cart_items-->
@endsection