@extends('layouts.app') @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Order History
@if($orders->count() > 0)
@foreach($orders as $order) @php $carbon = new Carbon\Carbon($order->created_at); @endphp @endforeach
Invoice ID# Date Status Remaining Total Actions
{{$order->id}} {{$carbon->format('l jS F Y @ h:i:s A')}} @if($order->IsChristmas)
Christmas Order
@endif
@if($order->FullyPaid || $order->AmountRemaning == 0)
Paid
@else
Unpaid
@endif
£{{ number_format( $order->AmountRemaning, 2)}} £{{ number_format( $order->total, 2)}} View @if($order->status == "unpaid" || $order->status == 'HIGHDEMAND') Pay Online @endif
@else

You have no previous orders to display

@endif
@endsection