@extends('layouts.app') @section('title', 'Keranjang Belanja') @section('active', 'keranjang') @section('content')

Keranjang Belanja

@if ($items->isNotEmpty())

{{ $items->sum('qty') }} barang siap di-checkout

@endif
@if ($items->isNotEmpty()) Tambah produk lain @endif
@if ($items->isEmpty())

Keranjang masih kosong

Yuk pilih kaos dan outfit distro favoritmu.

Mulai Belanja
@else
@csrf @method('PATCH')
@foreach ($items as $item)
{{ $item->product->name }}
Ukuran {{ $item->variant->size }} ยท {{ $item->variant->color }}@if ($item->product->color) · {{ $item->product->color }}@endif
{{ rupiah($item->product->price) }}
{{ rupiah($item->product->price) }}
Stok {{ $item->variant->stock }}
{{ rupiah($item->subtotal) }}
@endforeach
Lanjut belanja Perubahan jumlah tersimpan otomatis
@foreach ($items as $item)
@csrf @method('DELETE')
@endforeach

Ringkasan Belanja

Subtotal ({{ $items->sum('qty') }} barang){{ rupiah($subtotal) }}
Ongkir{{ app(\App\Services\Shipping::class)->distanceMode() ? 'Saat checkout' : rupiah($ongkir) }}
@if(app(\App\Services\Shipping::class)->distanceMode())

Total sementara belum termasuk ongkir. Ongkir dihitung saat checkout.@if(config('toko.delivery.free_threshold')>0) Gratis ongkir mulai {{ rupiah(config('toko.delivery.free_threshold')) }} dalam area layanan.@endif

@endif
Total{{ rupiah($subtotal + $ongkir) }}
Lanjut ke Checkout @guest

Kamu akan diminta masuk atau daftar dulu sebelum checkout.

@endguest
Bayar dengan Virtual Account QRIS
@endif
@endsection