@if(!empty($$order->paymentlog->pay_paymentmethodid) && $order->paymentlog->pay_paymentmethodid == '13') @else @endif {{-- --}} {{-- --}}
Order Summary
ORDER DATE ORDER #PURHASE ORDERPAYMENT METHODTOTALTRACKING #
{{ date('n/d/Y g:i A', strtotime($order->orderdate)) }} {{ $order->orderid }} @if(!empty($order->paymentlog->pay_details)) @if(!empty($$order->paymentlog->pay_paymentmethodid) && $order->paymentlog->pay_paymentmethodid == '13') {{ 'Purchase order # '.$order->paymentlog->pay_details }} @else {{ !empty($order->paymentlog->pay_details) ? $order->paymentlog->pay_details : "Credit Card" }} @endif @else Paypal @endif ${{ number_format((float)($order->paymentamount), 2, '.', '') }}@if(!empty($order->ordertracking->trackingnumber)) {{ $order->ordertracking->trackingnumber }} @else - @endif
Ship Bill
@if (!empty($order->shipaddress2)) @endif
{{ $order->shipfirstname }} {{ $order->shiplastname }}
{{ $order->shipaddress1 }}
{{ $order->shipaddress2 }}
{{ $order->shipcity }}, {{ $order->shipstate }} {{ $order->shippostalcode }}
{{ $order->shipcountry }}
{{ $order->billingphonenumber }}
@if (!empty($order->billingaddress2)) @endif
{{ $order->billingfirstname }} {{ $order->billinglastname }}
{{ $order->billingaddress1 }}
{{ $order->billingaddress2 }}
{{ $order->billingcity }}, {{ $order->billingstate }} {{ $order->billingpostalcode }}
{{ $order->billingcountry }}
{{ $order->billingphonenumber }}
{{ $order->coustomer->emailaddress }}
@foreach ($order->orderdetail as $orderdetail) @endforeach @php $subtotal = number_format((float)($order->paymentamount - ($order->totalshippingcost + $order->salestax1 )) + $order->coupon_discount , 2, '.', ''); @endphp
Product Qty Price
{{ (!empty($orderdetail->pin->Name))?$orderdetail->pin->Name:$orderdetail->productcode." Part" }} {{ $orderdetail->quantity }} ${{ $orderdetail->totalprice }}
 
 
Subtotal ${{ $subtotal }}
Shipping ({{ $order->shippingmethodname }} @if(!empty($order->shippingsurcharges))inc. surcharges of ${{ number_format((float)$order->shippingsurcharges, 2, '.', '') }}@endif) ${{ number_format((float) $order->totalshippingcost, 2, '.', '') }}
Estimated Tax ({{ round($order->salestaxrate1 * 100,2).'%' }}) ${{ number_format((float) $order->salestax1, 2, '.', '') }}
Total ${{ number_format((float) ($order->paymentamount), 2, '.', '') }}