@extends('layouts.user') @section('content')

Recent Order

All Order
@php($results = $allInvoice->sortByDesc('id')->take(5)) @if(!empty($results)) @foreach($results as $row) @endforeach @endif
Invoice No Created At Method Paid Date Email Status Amount Link
#{{ $row->invoice_no }} {{ !empty($row->created) ? date('d F, Y', strtotime($row->created)) : '' }} {{ !empty($row->method->name) ? $row->method->name : '' }} {{ !empty($row->payment_date) ? date('d F, Y', strtotime($row->payment_date)) : '' }} {{ $row->email }} @if ($row->status == 'pending') {{ strFilter($row->status) }} @elseif($row->status == 'unpaid') {{ strFilter($row->status) }} @elseif($row->status == 'delete') {{ strFilter($row->status) }} @else {{ strFilter($row->status) }} @endif {{ sprintf("$%0.2f", $row->grand_total) }} View
@endsection @push('headerPartial') @endpush