@extends('frontend.layouts.main') @section('title', 'Trang chủ') @section('css') @endsection @section('content')
@if(session('error'))
{{session("error")}}
@endif
@csrf
1
{{ __('home.dien_thong_tin') }}
2
{{ __('home.chon_thanh_toan') }}
3
{{ __('home.hoan_thanh') }}
@error('name')
{{ $message }}
@enderror
@error('address_detail')
{{ $message }}
@enderror
@if($discount->count()>0)
@if(session('error'))
{{session("error")}}
@endif
@endif
{{--
@error('city_id')
{{ $message }}
@enderror
@error('district_id')
{{ $message }}
@enderror
@error('commune_id')
{{ $message }}
@enderror
@error('address_detail')
{{ $message }}
@enderror
--}} {{--
Giỏ hàng của bạn
@if(count($data)>0) @foreach($data as $cartItem)
{{ $cartItem['name'] }}
{{ $cartItem['name'] }}
@endforeach @endif
--}}
{{ __('home.tomtat') }}
@foreach($data as $cartItem)
{{ $cartItem['name'] }} x {{ $cartItem['quantity'] }} {{ number_format($cartItem['totalPriceOneItem']) }}₫
@endforeach {{--@if(isset ($cartItem['totalOldPriceOneItem']) && $cartItem['totalOldPriceOneItem']>0 )
Tổng tiền trước giảm {{ number_format($totalOldPrice)}}₫
@endif--}}
{{ __('home.tonggia') }} {{ number_format($totalPrice) }}₫
{{ __('home.hotro') }}
  • {{ __('home.thanhtoankhi') }}
  • {{--
  • Thanh toán tại cửa hàng
  • --}}
  • {{ __('home.thanhtoanbang') }}
{{--@if(isset ($cartItem['totalOldPriceOneItem']) && $cartItem['totalOldPriceOneItem'] > $cartItem['totalPriceOneItem'] )
Giảm giá Giảm {{ number_format($totalOldPrice - $totalPrice) }}₫
@endif--}}
{{ __('home.giao_hang') }}
{{ __('home.mien_phi') }}
{{--
Tổng đơn đặt hàng
{{ number_format($cartItem['totalPriceOneItem']) }}₫
--}}
1
Điền thông tin giao hàng
2
Chọn thanh toán
3
Hoàn thành đơn hàng
{{--
--}}
{{--
@if (isset($vanchuyen)&&$vanchuyen)

{{ $vanchuyen->name }}

{!! $vanchuyen->description !!}
@endif

{{ $thanhtoan->name }}

@if (isset($thanhtoan)&&$thanhtoan) @endif
@if (isset($thanhtoan)&&$thanhtoan) @foreach ($thanhtoan->childs()->orderby('order')->orderByDesc('created_at')->get() as $item)
{{ $item->name }}
{!! $item->description !!}
@endforeach @endif
--}}
@if (isset($thanhtoan)&&$thanhtoan) @foreach ($thanhtoan->childs()->where('active', 1)->orderby('order')->orderByDesc('created_at')->get() as $item)
{{ $item->name }}
@if(count($item->childs)>0)
@isset($item) @foreach($item->childs()->where('active', 1)->orderBy('order')->get() as $child)
  • @if($child->image_path)
    @endif

    {{$child->name}}

    {{$child->value}}

  • @endforeach
  • Lưu ý khi chuyển khoản: Nội dung chuyển khoản ghi rõ tên hoặc số điện thoại
  • @endisset
    @endif
    @endforeach @endif
    @if (isset($thanhtoan)&&$thanhtoan) @endif
    Tóm tắt đơn hàng
    Tổng giá trị đơn hàng {{ number_format($totalPrice) }}₫
    Hỗ trợ thanh toán
    • Thanh toán khi nhận hàng/Thanh toán sau
    • {{--
    • Thanh toán tại cửa hàng
    • --}}
    • Thanh toán bằng thẻ ATM/mã QR/Ví điện tử
    {{--@if(isset ($cartItem['totalOldPriceOneItem']) && $cartItem['totalOldPriceOneItem'] > $cartItem['totalPriceOneItem'] )
    Giảm giá Giảm {{ number_format($totalOldPrice - $totalPrice) }}₫
    @endif--}}
    Giao hàng (Miễn phí vận chuyển)
    Miễn phí
    Hỗ trợ thanh toán
    • Thanh toán khi nhận hàng/Thanh toán sau
    • Thanh toán tại cửa hàng
    • Thanh toán bằng thẻ ATM/mã QR/Ví điện tử
    @endsection @section('js') {{-- --}} @endsection