@extends('layouts.app') @section('title', 'Checkout') @section('content')

Checkout

@csrf
Data Diri
@error('customer_name')
{{ $message }}
@enderror
@error('customer_phone')
{{ $message }}
@enderror
@error('customer_email')
{{ $message }}
@enderror
Pengiriman
@error('shipping_city')
{{ $message }}
@enderror
@error('shipping_address')
{{ $message }}
@enderror
Metode Pembayaran
@if($midtransActive)
@endif @foreach($banks as $bank)
first && !$midtransActive ? 'checked' : '' }} required>
@endforeach @error('payment_method')
{{ $message }}
@enderror
Pilih metode pembayaran yang tersedia.
Ringkasan Pesanan
@foreach($items as $item)
{{ $item['product']->name }}
{{ $item['product']->name }}

{{ $item['qty'] }}x @ Rp {{ number_format($item['product']->final_price, 0, ',', '.') }} @if($item['size']) | {{ $item['size'] }} @endif @if($item['color']) | {{ explode('|', $item['color'])[1] ?? $item['color'] }} @endif

Rp {{ number_format($item['subtotal'], 0, ',', '.') }}
@endforeach
Subtotal Rp {{ number_format($total, 0, ',', '.') }}
Berat Total {{ number_format($totalWeight, 0, ',', '.') }} gram
Ongkos Kirim Rp 0

Grand Total Rp {{ number_format($total, 0, ',', '.') }}
Rp {{ number_format($total, 0, ',', '.') }}
{{ $totalQty }} produk
{{-- Mobile summary modal --}} @endsection @push('scripts') @endpush