@extends('layouts.app') @section('content')
Recent Orders
@if(sizeof($orders) > 0)
@foreach($orders as $recent_order)
Order ID: {{$recent_order->order_id}}
Order Date: {{date('Y-m-d H:m',strtotime($recent_order->created_at))}}
Order Progress:
{{ucfirst($recent_order->order_status)}}
Amount:
${{Helper::setPriceFormat($recent_order->grand_total)}}
{{--
Order confirmed
Cake Layered
Cake Is Ready
@if($recent_order->order_status == 'pickedup' || $recent_order->delivery_option == 'pickup')
Picked Up
@endif @if($recent_order->order_status == 'delivered' || $recent_order->delivery_option == 'delivery')
Delivered
@endif
--}}

@endforeach
@else
No Active Order Found
@endif
@endsection @push('js') @endpush