@if ($orders->isEmpty())

No orders found for this customer.

@else @php $serialNo = 1; @endphp @foreach ($orders as $order) @php $totalProducts = $order->total_product; $hstAmount = $order->tax; $grandTotal = $order->grand_total; @endphp @endforeach
S.No. Order ID Book Date Total Product Total Amount HST Amount Grand Total
{{ $serialNo++ }} {{ $order->id }} {{ $order->created_at->format('d-m-Y') }} {{ $totalProducts }} ${{ number_format($order->total, 2) }} ${{ number_format($hstAmount, 2) }} ${{ number_format($grandTotal, 2) }}
@endif