@extends('layouts.app') @section('content')

Welcome to {{(env('IS_MIN_ONLINE') == 1) ? 'Made In Northamptonshire' : 'Edible16'}}, {{ Auth::user()->name }} !

@if(Cart::total() > 0)

{{ Auth::user()->name }}, you have items in your basket. Your current total is: £{{number_format(\Gloudemans\Shoppingcart\Facades\Cart::total(),2)}}

Continue to Checkout
@endif
Last 10 orders
@foreach(Auth::user()->orders()->whereNotIn("status",["cancelled"]) ->latest()->limit(10)->get() as $order) @php $carbon = new Carbon\Carbon($order->created_at); @endphp @endforeach
Invoice ID# Date Total Actions
{{$order->id}} {{$carbon->format('l jS F Y @ h:i:s A')}} @if($order->IsChristmas)
Christmas Order
@endif
£{{ number_format( $order->total, 2)}} View @if($order->status == "unpaid" || $order->status == "0" || $order->status == 'HIGHDEMAND') Pay Online @endif
View all previous orders
@if(Auth::user()->hasRole("admin"))
Administrator
Your account is an administrator.
Go to Administrator Area
@endif
Your Cart
@if(Cart::total() <= 0) Your cart is currently empty. @else Your cart is currently: £{{number_format(\Gloudemans\Shoppingcart\Facades\Cart::total(),2)}} Continue to Checkout @endif
Your details

{{Auth::user()->name}} {{Auth::user()->surname}}


@if(Auth::user()->telephone) {{Auth::user()->telephone}}@endif @if(Auth::user()->email) @endif Edit Details
@endsection