@if (!empty($selectedItems) && count($selectedItems) > 0)
@foreach ($selectedCartItems as $cart)
Product Image
{{ $cart['title'] }}

{{ $cart['description'] }}

@if ($cart['discount'] && strtotime(date('Y-m-d')) < strtotime($cart['dateDiscountEnd']))
Rp. {{ number_format($cart['price_other'], 0, ',', '.') }}
Rp. {{ number_format($cart['price'], 0, ',', '.') }} Diskon {{ $cart['discount'] }}%
@else

Rp.{{ number_format($cart['price'], 0, ',', '.') }}

@endif
@endforeach
{{-- Ringkasan Pembayaran --}}
Ringkasan

@php $priceperkg = 0; foreach ($selectedCartItems as $item) { $price = $item['discount'] > 0 ? $item['price_other'] : $item['price']; $priceperkg += $price * $item['qty']; } @endphp
Harga Total (per KG) Rp. {{ number_format($priceperkg, 0, ',', '.') }}
Total berat, total, dan grand total akan dihitung dan dikonfirmasi oleh admin setelah pesanan dibuat.

@else {{-- Jika tidak ada produk yang dipilih --}}

Tidak Ada Produk yang Dipilih!

@endif