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

Deliveries

Total orders: {{$orders->count()}}

@if(count($excludes) > 0)

Excluding: {{implode(", ", $excludes)}}

@endif
Orders
@if($orders->count()) @foreach($orders as $order) @endforeach
Order ID Name Status Address Picker Driver
{{$order->id}} {{$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->status == "0")
UNPAID
@else @if($order->status == "paid")
{{strtoupper($order->status)}}
@elseif($order->status == "picking")
{{strtoupper($order->status)}}
@elseif($order->status == "picked")
{{strtoupper($order->status)}}
@elseif($order->status == "completed")
{{strtoupper($order->status)}}
@elseif($order->status == "ReadyForPicking")
{{strtoupper('Ready for Picking')}}
@else
{{strtoupper($order->status)}}
@endif @endif
@if($order->LocationID == null) @else @endif
@else
You need to add a driver below to be able to use them for Deliveries
@endif
@endsection @section('scripts') @endsection