@extends('pages.admin.layout') @section('content')

Christmas Orders

@if(isset($success))
We have successfully marked your order as: {{$success}}
@endif

Order Breakdown by Payment Status

@if($orders['outstanding'] && count($orders['outstanding']) > 0) @foreach($orders['outstanding'] as $order) @php $carbon = new Carbon\Carbon($order->created_at); @endphp @endforeach @endif
Invoice ID Type Customer Name Order Details Balance Status Total Actions
{{ $order->id }}
{{ ($order->DiscountCode !== 'ADMINAPPLIED') ? 'Edible16' : 'WATERLOO'}}
{{$order->DeliveryFirstName}} {{$order->DeliveryLastName}} ,
@if($order->DeliveryAddressLine1)
{{$order->DeliveryAddressLine1}},
@endif @if($order->DeliveryAddressLine2)
{{$order->DeliveryAddressLine2}},
@endif @if($order->DeliveryAddressLine3)
{{$order->DeliveryAddressLine3}},
@endif @if($order->DeliveryCity)
{{$order->DeliveryCity}},
@endif @if($order->DeliveryCounty)
{{$order->DeliveryCounty}},
@endif @if($order->DeliveryPostcode)
{{$order->DeliveryPostcode}}
@endif
@if($order->DeliveryNotes)
Notes: {{$order->DeliveryNotes}}
@endif
@if($order->AmountRemaning <= 0 || $order->AmountRemaning == null)
PAID IN FULL
@else
£{{ number_format($order->AmountRemaning, 2) }}
@endif
@if($order->status == "0")
UNPAID
@else @if($order->status == "paid")
{{strtoupper($order->status)}}
@elseif($order->status == "picking")
{{strtoupper($order->status)}}
@elseif($order->status == "picked")
DELIVERING
@elseif($order->status == "completed")
{{strtoupper($order->status)}}
@else
{{strtoupper($order->status)}}
@endif @endif @if($order->DriveryID != null) @php $driver = App\Drivers::where("id",$order->DriveryID)->first(); @endphp @if($driver)
@endif @endif
£{{ number_format( $order->total, 2)}} View
@if($orders['paid'] && count($orders['paid']) > 0) @foreach($orders['paid'] as $order) @php $carbon = new Carbon\Carbon($order->created_at); @endphp @endforeach @endif
Invoice ID Type Customer Name Order Details Balance Status Total Actions
{{ $order->id }}
{{ ($order->DiscountCode !== 'ADMINAPPLIED') ? 'Edible16' : 'WATERLOO'}}
{{$order->DeliveryFirstName}} {{$order->DeliveryLastName}} ,
@if($order->DeliveryAddressLine1)
{{$order->DeliveryAddressLine1}},
@endif @if($order->DeliveryAddressLine2)
{{$order->DeliveryAddressLine2}},
@endif @if($order->DeliveryAddressLine3)
{{$order->DeliveryAddressLine3}},
@endif @if($order->DeliveryCity)
{{$order->DeliveryCity}},
@endif @if($order->DeliveryCounty)
{{$order->DeliveryCounty}},
@endif @if($order->DeliveryPostcode)
{{$order->DeliveryPostcode}}
@endif
@if($order->DeliveryNotes)
Notes: {{$order->DeliveryNotes}}
@endif
@if($order->AmountRemaning <= 0 || $order->AmountRemaning == null)
PAID IN FULL
@else
£{{ number_format($order->AmountRemaning, 2) }}
@endif
@if($order->status == "0")
UNPAID
@else @if($order->status == "paid")
{{strtoupper($order->status)}}
@elseif($order->status == "picking")
{{strtoupper($order->status)}}
@elseif($order->status == "picked")
DELIVERING
@elseif($order->status == "completed")
{{strtoupper($order->status)}}
@else
{{strtoupper($order->status)}}
@endif @endif @if($order->DriveryID != null) @php $driver = App\Drivers::where("id",$order->DriveryID)->first(); @endphp @if($driver)
@endif @endif
£{{ number_format( $order->total, 2)}} View
@if($orders['unpaid'] && count($orders['unpaid']) > 0) @foreach($orders['unpaid'] as $order) @php $carbon = new Carbon\Carbon($order->created_at); @endphp @endforeach @endif
Invoice ID Type Customer Name Order Details Balance Status Total Actions
{{ $order->id }}
{{ ($order->DiscountCode !== 'ADMINAPPLIED') ? 'Edible16' : 'WATERLOO'}}
{{$order->DeliveryFirstName}} {{$order->DeliveryLastName}} ,
@if($order->DeliveryAddressLine1)
{{$order->DeliveryAddressLine1}},
@endif @if($order->DeliveryAddressLine2)
{{$order->DeliveryAddressLine2}},
@endif @if($order->DeliveryAddressLine3)
{{$order->DeliveryAddressLine3}},
@endif @if($order->DeliveryCity)
{{$order->DeliveryCity}},
@endif @if($order->DeliveryCounty)
{{$order->DeliveryCounty}},
@endif @if($order->DeliveryPostcode)
{{$order->DeliveryPostcode}}
@endif
@if($order->DeliveryNotes)
Notes: {{$order->DeliveryNotes}}
@endif
@if($order->AmountRemaning <= 0 || $order->AmountRemaning == null)
PAID IN FULL
@else
£{{ number_format($order->AmountRemaning, 2) }}
@endif
@if($order->status == "0")
UNPAID
@else @if($order->status == "paid")
{{strtoupper($order->status)}}
@elseif($order->status == "picking")
{{strtoupper($order->status)}}
@elseif($order->status == "picked")
DELIVERING
@elseif($order->status == "completed")
{{strtoupper($order->status)}}
@else
{{strtoupper($order->status)}}
@endif @endif @if($order->DriveryID != null) @php $driver = App\Drivers::where("id",$order->DriveryID)->first(); @endphp @if($driver)
@endif @endif
£{{ number_format( $order->total, 2)}} View

Orders by Collection Time

@foreach($collectiontimes as $collectiontiming)
@if($timeorders[$collectiontiming] && count($timeorders[$collectiontiming]) > 0) @foreach($timeorders[$collectiontiming] as $order) @php $carbon = new Carbon\Carbon($order->created_at); @endphp @endforeach @endif
Invoice ID Type Customer Name Order Details Total Actions
{{ $order->id }}
{{ ($order->DiscountCode !== 'ADMINAPPLIED') ? 'Edible16' : 'WATERLOO'}}
{{$order->DeliveryFirstName}} {{$order->DeliveryLastName}} ,
@if($order->DeliveryAddressLine1)
{{$order->DeliveryAddressLine1}},
@endif @if($order->DeliveryAddressLine2)
{{$order->DeliveryAddressLine2}},
@endif @if($order->DeliveryAddressLine3)
{{$order->DeliveryAddressLine3}},
@endif @if($order->DeliveryCity)
{{$order->DeliveryCity}},
@endif @if($order->DeliveryCounty)
{{$order->DeliveryCounty}},
@endif @if($order->DeliveryPostcode)
{{$order->DeliveryPostcode}}
@endif
{{ method_field('post') }} @csrf
@if($order->DeliveryNotes)
Notes: {{$order->DeliveryNotes}}
@endif
@if($order->AmountRemaning <= 0 || $order->AmountRemaning == null)
PAID IN FULL
@else
£{{ number_format($order->AmountRemaning, 2) }}
@endif
£{{ number_format( $order->total, 2)}}
View
@endforeach
@endsection @section('scripts') @append