Checkout

Ringkasan Pesanan

@foreach($carts as $cart)
{{$cart->product->name}}

{{$cart->product->name}}

@if($cart->product->is_product_digital) Digital @endif @if($cart->variant)
{{$cart->variant->variant_name}}
@endif @php $price = $cart->variant ? $cart->variant->price : $cart->product->price; @endphp
{{$cart->quantity}} x Rp {{number_format($price)}} Rp {{number_format($price * $cart->quantity)}}
@endforeach
Subtotal ({{count($carts)}} item) Rp {{number_format($total)}}
@if($shippingCost > 0)
Ongkos Kirim Rp {{number_format($shippingCost)}}
@endif @if($voucherDiscount > 0)
Diskon Voucher - Rp {{number_format($voucherDiscount)}}
@endif
Total Pembayaran Rp {{number_format($total + $shippingCost - $voucherDiscount)}}

Data Penerima

@error('shippingData.recipient_name')

{{ $message }}

@enderror
@error('shippingData.phone')

{{ $message }}

@enderror
@if(!$this->hasOnlyDigitalProducts())

Alamat Pengiriman

@error('shippingData.area_id')

{{ $message }}

@enderror
Memuat layanan pengiriman...
@if(!empty($shippingServices))
@foreach($shippingServices as $service) @php $isSelected = $selectedService === json_encode($service); @endphp
@endforeach
@else
Belum ada layanan pengiriman
Silakan pilih lokasi tujuan terlebih dahulu
@endif
@error('selectedService')

{{ $message }}

@enderror
@error('shippingData.shipping_address')

{{ $message }}

@enderror
@endif

Catatan Tambahan

@if($appliedVoucher)

{{ $appliedVoucher->code }}

Diskon: Rp {{ number_format($voucherDiscount, 0, ',', '.') }}

@else
@endif
Subtotal ({{count($carts)}} item) Rp {{number_format($total)}}
@if($shippingCost > 0)
Ongkos Kirim Rp {{number_format($shippingCost)}}
@endif @if($voucherDiscount > 0)
Diskon - Rp {{number_format($voucherDiscount)}}
@endif
Total Rp {{number_format($total + $shippingCost - $voucherDiscount)}}
@push('scripts') @endpush