@php $ttl = 0; $count = 0; @endphp @foreach($products as $product) @php $ttl = $ttl + $product->total * $product->amount; $count = $count + $product->total; @endphp @endforeach
Order ID Date Transaction No Customer Email Phone Verified Qty Each Total
{{$product->id}} {{date('M d g:i a', strtotime($product->created_at))}} @if($product->order->transaction) {{$product->order->transaction->transaction_no}} @else
This order has no associated transaction. It is likely that this was a decline or other transaction error. Please contact Westlinks Online to investigate.
@endif
{{$product->order->user->full_name}} {{$product->order->user->email}} {{localize_us_number($product->order->user->phone)}} @if($product->order->user->email_verified_at != "") Yes @endif {{$product->total}} {{ $product->amount }} {{ $product->total * $product->amount }}
Total {{$category->title}} Sold {{ $count }} {{ $ttl }}