@foreach ($order->orderdetail as $orderdetail)
{{ (!empty($orderdetail->pin->Name))?$orderdetail->pin->Name:$orderdetail->productcode." Part" }}
{{--
Model: {{ $orderdetail->productcode }}
--}}
{{--
--}}
{{ $orderdetail->quantity }}
${{ $orderdetail->totalprice }}
@endforeach
@php
$subtotal = number_format((float)($order->paymentamount - ($order->totalshippingcost + $order->salestax1 )) + $order->coupon_discount , 2, '.', '');
@endphp
Subtotal
${{ $subtotal }}
@if(!empty($order->coupon_discount))
Discount ({{ $order->coupon_code }})
- ${{ number_format((float)$order->coupon_discount, 2, '.', '') }}
@endif
Shipping @if(!empty($order->shippingmethodname)) ({{ $order->shippingmethodname }} @if(!empty($order->shippingsurcharges))inc. surcharges of ${{ number_format((float)$order->shippingsurcharges, 2, '.', '') }}@endif) @endif
${{ number_format((float)$order->totalshippingcost, 2, '.', '') }}
@if(!empty($order->shippingsurcharges))
{{--
Shipping Surcharges
${{ number_format((float)$order->shippingsurcharges, 2, '.', '') }}
--}}
@endif
Estimated Tax @if(!empty(request()->isadmin)) ({{ round($order->salestaxrate1 *100,2).'%' }}) @endif
${{ number_format((float)$order->salestax1, 2, '.', '') }}
Total
${{ number_format((float)($order->paymentamount), 2, '.', '') }}