@php($groups = $items->groupBy(fn ($item) => (int) $item['product']->tenant_id)) @php($hasPrescriptionItems = $items->contains(fn ($item) => $item['policy']['requires_prescription'])) @php($hasNonPrescriptionItems = $items->contains(fn ($item) => ! $item['policy']['requires_prescription']))

Belanja nyaman

Keranjang Anda

Periksa kembali produk pilihan Anda sebelum melanjutkan.

@if($groups->count() > 1)

Pesanan ini akan tiba dalam {{ $groups->count() }} pengiriman.

@endif
@if($items->isEmpty())

Belanja sehat Anda siap dimulai

Temukan obat dan kebutuhan kesehatan yang tepat untuk Anda.

Mulai belanja
@else
@foreach($groups as $group) @php($tenant = $group->first()['product']->tenant)

Dikirim oleh

{{ $tenant->name }}

Terverifikasi
@foreach($group as $item)
{{ $item['product']->name }}

{{ $item['product']->brand }}

{{ $item['product']->name }}

Varian: {{ $item['variant']->name }}

@if($item['policy']['requires_prescription']) Dengan resep dokter@elseif($hasPrescriptionItems)Obat bebas@endif

Rp{{ number_format($item['variant']->price, 0, ',', '.') }}

@csrf @method('DELETE')
@csrf @method('PATCH'){{ $item['quantity'] }}
@endforeach
@endforeach
@endif