@extends('layouts.app') @section('content')

Keranjang

@csrf

Alamat Pengiriman

@if($address)
@else
@error('name') {{ $message }} @enderror
@error('phone') {{ $message }} @enderror
@error('zip') {{ $message }} @enderror
@error('state') {{ $message }} @enderror
@error('city') {{ $message }} @enderror
@error('address') {{ $message }} @enderror
@error('locality') {{ $message }} @enderror
@error('landmark') {{ $message }} @enderror
@endif

Pesanan Kamu

@foreach (Cart::instance('cart') as $item) @endforeach
PRODUK SUBTOTAL
{{ $item->name }} x {{ $item->qty }} ${{ $item->subtotal() }}
@if (Session::has('discounts'))
Subtotal ${{ Cart::instance('cart')->subTotal() }}
Diskon {{ Session::get('coupon')['code'] }} ${{ Session::get('discounts')['discount'] }}
Subtotal Setelah Diskon ${{ Session::get('discounts')['subtotal'] }}
Pengiriman Free
VAT ${{ Session::get('discounts')['tax'] }}
Total ${{ Session::get('discounts')['total'] }}
@else
SUBTOTAL Rp{{ number_format((float) preg_replace('/[^\d.]/', '', Cart::instance('cart')->subtotal()), 0, ',', '.') }}
PENGIRIMAN Gratis
VAT Rp{{ number_format((float) preg_replace('/[^\d.]/', '', Cart::instance('cart')->tax()), 0, ',', '.') }}
TOTAL Rp{{ number_format((float) preg_replace('/[^\d.]/', '', Cart::instance('cart')->total()), 0, ',', '.') }}
@endif
{{--
Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our privacy policy.
--}}
@endsection