@extends('layouts.master') @section('meta') @stop @section('content')
| Order # | Order Date | Customer Name | Order Status | Source | Address | Amount | Amount Due | Email Sent | |
|---|---|---|---|---|---|---|---|---|---|
| {{$order->order_no}} | {{date("d M, Y h:i a", strtotime($order->created_at))}} | {{$order->customer_name}} | @switch($order->status) @case('pending payment') {{strtoupper($order->status)}} @break @case('pending') {{strtoupper('Order Placed')}} @break @case('collected') {{strtoupper($order->status)}} @break @case('inprogress') {{strtoupper($order->status)}} @break @case('invoiced') {{strtoupper($order->status)}} @break @case('paid') {{strtoupper($order->status)}} @break @case('shipped') {{strtoupper($order->status)}} @break @case('delivered') {{strtoupper($order->status)}} @break @case('cancelled') {{strtoupper($order->status)}} @break @endswitch | {!! strtolower($order->source) == 'web' ? '' : '' !!} | {!! nl2br(e($order->shipping_address))!!} | £{{number_format($order->subtotal, 2)}} | £{{number_format($order->amount_due, 2)}} | @if($order->email_sent) @else @endif |