@if($fulfillOrder) @php $now = \Carbon\Carbon::now(); if($now->format('l') !== "Tuesday") $now = \Carbon\Carbon::parse('next tuesday'); $now = $now->addDays(3) @endphp @foreach(App\Http\Controllers\ShoppingCartController::getCartByDeliveryDate() as $deliveryDay => $items) @foreach($items as $cartItem) @if($cartItem->associatedModel == "App\Product") @endif @if($cartItem->associatedModel == "App\DiscountCode") @endif @endforeach @endforeach @php $packaging = Cart::search(function ($cartItem, $rowId) { return $cartItem->associatedModel === "App\PackagingDetails"; }); @endphp @if($packaging !== null && count($packaging) > 0) @foreach ($packaging as $packagingItem) @endforeach @endif @php $delivery = Cart::search(function ($cartItem, $rowId) { return $cartItem->associatedModel === "App\DeliveryDetails"; }); @endphp @if($delivery !== null && count($delivery) > 0) @foreach ($delivery as $deliveryItem) @endforeach @endif @php $discount = Cart::search(function ($cartItem, $rowId) { return $cartItem->associatedModel === "App\DiscountCode"; }); $discount = (count($discount) > 0) ? $discount->first() : FALSE; @endphp @if($discount && $discount->model->type == \App\DiscountCode::FREEPURCHASE()) @else @endif
YOUR EDIBLE16 BASKET
{{ $cartItem->model->name ?? $cartItem->name }} × {{ $cartItem->qty }} £{{ number_format($cartItem->total, 2) }} DISCOUNT
{{ $cartItem->model->name ?? $cartItem->name }}
£{{ number_format($cartItem->total, 2) }}
{{ $packagingItem->name }} £{{ number_format($packagingItem->total, 2) }}
{{ $deliveryItem->name }} @if($deliveryItem->total == "0.00") FREE COLLECTION @else £{{ number_format($deliveryItem->total, 2) }} @endif
SUBTOTAL FREE
SUBTOTAL £{{ (\Gloudemans\Shoppingcart\Facades\Cart::total() > 0) ? \Gloudemans\Shoppingcart\Facades\Cart::total() : '0.00' }}
Have a coupon code?
@else
NOTICE!
We are unable to delivery to your postcode. Please try collection
@endif