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