| Product Code |
Product Name |
Qty |
Price |
Total Price |
@php $totalPrice=NULL; $totalqty=NULL; @endphp
@foreach($data->orderItems as $order)
| {{@$order->product->sku}} |
{{@$order->product->title}} |
{{$order->qty}} |
£ {{number_format($order->price ,2)}} |
£ {{number_format(($order->price*$order->qty),2)}} |
@php $totalPrice +=$order->price*$order->qty; $totalqty +=$order->qty; @endphp
@endforeach
| {{$totalqty}} | Total |
£ {{number_format($totalPrice,2)}} |
| Delivery Charge |
£ {{number_format($data->shippingCharge,2)}} |
@if($data->discount)
| Discount |
£ {{number_format($data->discount,2)}} |
@endif
| Total Amount |
£ {{number_format((($totalPrice+$data->shippingCharge)-$data->discount),2)}} |