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

Keranjang

@foreach([1 => 'Keranjang Pembelian', 2 => 'Pengiriman dan Pembayaran', 3 => 'Konfirmasi'] as $step => $label) 0{{ $step }} {{ $label }} @if ($step === 1) Kelola Daftar Barang Anda @elseif ($step === 2) Periksa Daftar Item Anda @else Tinjau dan Kirim Pesanan Anda @endif @endforeach
@if($items->count() > 0)
@foreach($items as $item) @endforeach
Product Harga Quantity Subtotal
{{ $item->name }}

{{ $item->name }}

  • Color: Pink
  • Size: L
Rp {{ number_format($item->price, 0, ',', '.') }}
@csrf @method('PUT')
-
@csrf @method('PUT')
+
Rp {{ number_format((float) preg_replace('/[^\d.]/', '', $item->subTotal()), 0, ',', '.') }}
@csrf @method('DELETE')

Cart Totals

@if(Session::has('discounts'))
Subtotal Rp {{ number_format((float) preg_replace('/[^\d.]/', '', Cart::instance('cart')->subTotal()), 0, ',', '.') }}
Diskon ({{ Session::get('coupon')['code'] }}) Rp {{ number_format((float) Session::get('discounts')['discount'], 0, ',', '.') }}
Subtotal Setelah Diskon Rp {{ number_format((float) Session::get('discounts')['subtotal'], 0, ',', '.') }}
Pengiriman Gratis
VAT Rp {{ number_format((float) Session::get('discounts')['tax'], 0, ',', '.') }}
Total Rp {{ number_format((float) Session::get('discounts')['total'], 0, ',', '.') }}
@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
@else

Tidak ada item yang ditemukan di keranjang Anda

Beli Sekarang
@endif
@endsection @push('scripts') @endpush