@foreach ($order->orderitems as $item) @php $total = $item->product->price($user) * $item->quantity; @endphp @endforeach @if ($order->made_by == cusr()->id) @endif @if ($order->amount > 0) @endif
SN PID PRODUCT NAME PACK SIZE RATE QNTY TOTAL
{{ $loop->iteration }} {{ $item->product->pid }} @if ($order->made_by == cusr()->id) @php $dlink = 'deleteItem(' . $item->id . ')'; @endphp @endif {{ $item->product->name }} {{ $item->product->unit->name }} {{ bdnumber($item->product->price($user)) }} {{ $item->quantity }} {{ bdnumber($total) }}
+ Add Item
GRAND TOTAL {{ bdnumber($order->amount) }}
In words: {{ bdnumberword($order->amount) }}