@php
$delivery = Cart::search(function ($cartItem, $rowId) {
return $cartItem->associatedModel === "App\DeliveryDetails";
});
@endphp
@if($delivery !== null && count($delivery) > 0)
@else
@endif
Cart totals
Subtotal | £{{ number_format((\Gloudemans\Shoppingcart\Facades\Cart::subtotal() - $delivery->first()->total), 2) }} |
---|---|
Delivery | £{{ number_format($deliveryItem->total, 2) }} |
Total | £{{\Gloudemans\Shoppingcart\Facades\Cart::subtotal()}} |
Cart totals
Total | £{{\Gloudemans\Shoppingcart\Facades\Cart::subtotal()}} |
---|
@guest
Checkout
@else
Continue
to
Payment
@endif