@extends($_layout . 'master') @section('title', $page_title) @include($_lib . 'register-meta') @section('content')
@if ($cart && $cart->details && count($cart->details))

{{ $page_title }}

@if ($e = session('warning_message'))
{{ $e }}
@endif
@csrf

Chi tiết hoá đơn

@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) @if ($input->type == 'hidden') {!! $input !!} @else
{!! $input !!}
@if ($input->error)
{{ $input->error }}
@endif
@endif @endforeach @php $input = $form->note; @endphp
{!! $input !!}
@if ($input->error)
{{ $input->error }}
@endif

Đơn hàng

@foreach ($cart->details as $item) @endforeach @if ($methods = get_payment_method_options()) @php $old = old('payment_method_id'); @endphp @endif
Sản phẩm Thành tiền
{{ $item->product_name }} × {{ $item->getPriceFormat('total') }}
Tạm tính {{ $helper->getCurrencyFormat($cart->sub_total) }}
Tổng tiền {{ $helper->getCurrencyFormat($cart->total_money) }}
Thanh toán
    @foreach ($methods as $v => $method)
  • id || (!$old && $loop->index == 0) ? 'checked' : '' }}>
  • @endforeach
@else
Không có sản phẩm nào trong giỏ hàng
@endif
@endsection @section('js') @endsection