@extends('layouts.app', ["isCart" => TRUE]) @section('myjsfile') @endsection @section('content') @php $user = \Auth::user(); @endphp @php $now = \Carbon\Carbon::now(); if($now->format('l') !== "Tuesday") $now = \Carbon\Carbon::parse('next tuesday'); $orderavailability = App\OrderAvailablity::where("week_year", $now->weekOfYear.$now->year)->first(); $allowed = App\Services\OrdersService::is_whitelisted_previously($orderavailability); $slots = 0; if(env("IS_MIN_ONLINE") == 1) $orderavailability->DeliverySlots = 10; if($orderavailability->EcoSlots > 0) $slots += $orderavailability->EcoSlots; if($orderavailability->DeliverySlots > 0) $slots += $orderavailability->DeliverySlots; if($orderavailability->WaterlooSlots > 0) $slots += $orderavailability->WaterlooSlots; if( Auth::user()->whitelisted) $slots = 1; @endphp
@if ($errors->any())
@endif @if(session('success'))
@endif @if(session('message'))
@endif

Checkout

{{ csrf_field() }}

What type of order are you placing today?

Normal Weekly Order {{$orderavailability->title}}
Christmas OrderDelivery on Monday 23rd of December
Collection on: Saturday 21st December, Sunday 22nd December, and Monday 23rd December

Billing details

@php $firstname = $lastOrder->DeliveryFirstName ?? Auth::user()->name; $lastname = $lastOrder->DeliveryLastName ?? Auth::user()->surname; @endphp

@php $recentTelephone = $lastOrder->DeliveryMobileNumber ?? Auth::user()->telephone; @endphp

Home Delivery Friday and Click & Collect Friday {{$orderavailability->title}}
Christmas Delivery on Monday 23rd of December
Collection on: Saturday 21st December, Sunday 22nd December, and Monday 23rd December
LocationID) == null) checked="checked" @elseif(Auth::user()->whitelisted == 0 && $orderavailability->DeliverySlots == 0) checked="checked" @endif> LocationID) == null) checked="checked" @endif>
Delivery Fridays - Charges apply
Collection Friday to Saturday
Delivery Address

Collection Details
Waterloo Cottage Farm 34 Harborough Rd, Great Oxendon, LE16 8NA

Your order once ready will be able to be collected from: EcoVillage65 St Mary's Rd, Market Harborough LE16 7DS.

Your order once ready will be able to be collected from: Waterloo Cottage Farm34 Harborough Rd, Great Oxendon, Market Harborough LE16 8NA.

Your earliest collection time will be: {{$collectionDate->format('l jS F')}}We will notify you via Email and Text Message when your order is ready to collect.
Saturday 21st December between 9am and 6pm
Sunday 22nd December between 9am and 6pm
Monday 23rd December between 9am and 12pm

Additional information

Your order

@include('pages.cart._checkout-details')
Total to pay today towards your Christmas Order

How do you wish to make this payment?
  • We make our payments securely by SagePay

  • @php $tranactions = App\Payment::where("user_id", Auth::user()->id)->whereNull("CardMD5")->where("status", "COMPLETED")->get(); foreach ($tranactions as $transaction) { $details = json_decode($transaction->details); if ($details !== null && isset($details->Last4Digits)) { $md = sha1($details->Last4Digits . $details->ExpiryDate . $details->CardType); $transaction->CardMD5 = $md; $transaction->save(); } } $cards = App\Payment::where("user_id", Auth::user()->id)->where("IsValid", 1)->whereNotNull("CardMD5")->groupBy("CardMD5")->orderBy("created_at", "desc")->get(); @endphp @foreach($cards as $card)
  • You last used this card on: {{Carbon\Carbon::parse($card->created_at)->format('l jS F Y')}}

  • @endforeach

Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our privacy policy.

@endsection