@extends('front.inner-layout.app') @section('content')

My Orders

@include('front.inner-layout.header')
    {{--
  • Filter
  • --}}
  • {{--
  • --}}
  • {{--
  • --}}
@if(count($orderReceived)==0) No orders received. @endif @foreach ($orderReceived as $order)

Order received

{{ date('d/m/Y',strtotime($order->date)) }}

{{ $order->first_name ?? "" }} {{ $order->last_name ?? "" }}

@foreach ($order->items as $items)
{{$items->deduct_quantity}} {{ $items->product_name ?? "" }}
${{number_format(($items->product_cost * $items->deduct_quantity) ?? 0 ?? 0, 2)}}
@endforeach
@php $maintotal=0; @endphp @foreach($order->items as $cq) @php $maintotal+= $cq->deduct_quantity * $cq->product_cost; @endphp @endforeach ${{number_format($maintotal ?? 0 ?? 0, 2)}}

Order {{ $order->invoice_number ?? '' }}

Process
@foreach ($order->items as $items1) @endforeach
@endforeach
{{--

Order filled

15/06/2020

Lina Lopez

1 Ergodynamic Pillow
$129.00
1 Express delivery
$12.00
$141.00

Order # 554533

Order filled

13/04/2020

Darren Goosey

1 Ergodynamic Pillow
$129.00
1 Express delivery
$12.00
$141.00

Order # 54622

--}} @foreach ($orderFilled as $order)

Order Filled

{{ date('d/m/Y',strtotime($order->date)) }}

{{ $order->first_name ?? "" }} {{ $order->last_name ?? "" }}

@foreach ($order->items as $items)
{{ $items->product_name ?? "" }}
${{ $items->product_cost ?? "" }}
@endforeach
@php $sum=collect($order->items)->sum('product_cost'); @endphp ${{ $sum ?? "" }}

Order {{ $order->invoice_number ?? '' }}

@if( $order->tracking_code!="") Track Order @endif View Invoice
@foreach ($order->items as $items1) @endforeach
@endforeach @if(count($orderFilled)==0) No My orders. @endif
{{--
...
Metagenics PhytoMulti 60 tablets
Item code: 78867899

Take one tablet three times daily or as directed by your healthcare practitioner.

$39.99

Stock levels: 44

--}} @endsection @section('modals')
@endsection @section('css') @endsection @section('js') @endsection