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

Your Orders

Grand Total {{ sprintf("$%0.2f", $allInvoice->sum('grand_total')) }}
Delete Amount {{ sprintf("$%0.2f", $allInvoice->where('status', 'delete')->sum('grand_total')) }}
Paid Amount {{ sprintf("$%0.2f", $allInvoice->where('status', 'paid')->sum('grand_total')) }}
Due Amount {{ sprintf("$%0.2f", $allInvoice->where('status', 'unpaid')->sum('grand_total')) }}
@if (!empty($info->results) && $info->results->isNotEmpty())
@php($allAmount = 0) @foreach ($info->results as $key => $row) @php($allAmount += $row->grand_total) @endforeach
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
Total {{ sprintf("$%0.2f", $allAmount) }}  
{{ $info->results->links() }}
@endif
@endsection @push('headerPartial') @endpush @push('footerPartial') @endpush