ĐẶT HÀNG

@foreach ($data as $key => $cartItem) @php $product = \App\Models\Product::find($cartItem['id']); @endphp
{{ $cartItem['name'] }} @if(!empty($cartItem['color']) || !empty($cartItem['size']))

@if(!empty($cartItem['color'])) Dung tích: {{ $cartItem['color'] }}
@endif @if(!empty($cartItem['size'])) Dung tích: {{ $cartItem['size'] }} @endif

@endif

{{ number_format($cartItem['price']) }} ₫

@if($cartItem['old_price'] != 0 && $cartItem['old_price'] - $cartItem['price'] > 0) {{ number_format($cartItem['old_price']) }} ₫ -{{ round(($cartItem['old_price'] - $cartItem['price']) / $cartItem['old_price'] * 100) }}% @endif
Số lượng:

@endforeach
Tạm tính: {{ number_format($totalPrice,0,',','.') }} ₫
{{ __('common.Tổng Tiền') }}: {{ number_format($totalPrice - $totalDiscount,0,',','.') }} ₫