@extends($_layout . 'master') @section('title', $page_title) @include($_lib . 'register-meta') @section('body.class', 'cart-page') @section('content')
@include($_template . 'page-header', [ 'title' => $page_title, // 'sub_title' => isset($category) && $category->description ? $category->description : $dynamic->description, ])
@if ($cart && $cart->details && count($cart->details)) @if ($e = session('warning_message'))
{{ $e }}
@endif
@csrf

Sản phẩm

@foreach ($cart->details as $item)

{{ $item->product_name }}

@if ($item->attributes && count($item->attributes)) @foreach ($item->attributes as $attr) {{ $attr->text }} @if (!$loop->last) / @endif @endforeach @endif

{{-- @if ($item->has_promo)

{{$item->getPriceFormat('total_list')}}

@endif --}} {{--

{{ $item->getPriceFormat('final') }}

--}}

{{ $item->getPriceFormat('total') }}

@if ($item->attributes && count($item->attributes)) @foreach ($item->attributes as $attr) {{ $attr->text }} @if (!$loop->last) / @endif @endforeach @endif

@endforeach

Thông tin thanh toán

@csrf
@php $form = $cart->getForm([ 'className' => 'form-control', ]); $info = $form->get('billing_name', 'billing_phone_number', 'billing_email', 'billing_region_id', 'billing_district_id', 'billing_ward_id', 'billing_address'); $shipping = $form->get('shipping_name', 'shipping_email', 'shipping_phone_number', 'shipping_region_id', 'shipping_district_id', 'shipping_ward_id', 'shipping_address'); @endphp
@foreach ($info as $input)
{{-- --}}
{!! $input !!}
@if ($input->error)
{{ $input->error }}
@endif
@endforeach
{!! $form->note !!}
@if ($coupons && count($coupons)) @foreach ($coupons as $coupon)
{{ $coupon->code }} (còn {{ $coupon->total - $coupon->usage }})
{{ $coupon->getDownTotalFLabel() }}
@endforeach @endif

Hóa đơn

Tạm tính {{ $helper->getCurrencyFormat($cart->sub_total) }}
Khuyến mãi Chưa có
Tổng thành tiền {{ $helper->getCurrencyFormat($cart->total_money) }}

Hình thức thanh toán

@if (count($methods = $helper->getPaymentMethodOptions()))