@if ($cartItems && count($cartItems) > 0)
@php $total = 0; @endphp
Cấu hình tùy chọn và tiếp tục thanh toán
@foreach ($cartItems as $index => $item)
@php
$product = $item['product'];
$total += $item['price'];
$addons = $item['addon'] ?? [];
$osGroups = $item['os_group'] ?? [];
@endphp
@include('frontend.cart.partials.domain-input')
@include('frontend.cart.partials.product-details', [
'product' => $product,
'item' => $item
])
@if ($item['product_type'] == 4 && isset($item['os_group']) && count($item['os_group']) > 0)
@include('frontend.cart.partials.os-select', [
'item' => $item,
'index' => $index
])
@endif
@endforeach
@else
@include('frontend.cart.partials.empty-cart')
@endif