Subtotal
{{ number_format($subtotal, 2, ',', '') }} €
Discount
{{ number_format($discount, 2, ',', '') }} €
Net Price
{{ number_format($netPrice, 2, ',', '') }} €
Net Price Insurance
{{ number_format($insuranceTotal, 2, ',', '') }} €
Tax (19%)
{{ number_format($tax, 2, ',', '') }} €
Total
{{ number_format($total, 2, ',', '') }} €
@php
$hasMissingTimes = false;
foreach ($cartItems as $item) {
if (empty($item->pickup_time) || empty($item->dropoff_time)) {
$hasMissingTimes = true;
$itemWithMissingTime = $item;
break;
}
}
$href = $hasMissingTimes
? route('vendor.cart.confirm', ['cartItem' => $itemWithMissingTime->id])
: route('vendor.checkout.index');
@endphp