@if(!empty($order->orderdate) && !empty($order->coustomer->emailaddress))

INVOICE

@if(!empty($$order->paymentlog->pay_paymentmethodid) && $order->paymentlog->pay_paymentmethodid == '13') @else @endif
Order Summary
ORDER DATE ORDER #PURHASE ORDERPAYMENT METHODTOTAL TRACKING #
{{ 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 }} @elseif(!empty($order->paymentlog->pay_paymentmethodid) && $order->paymentlog->pay_paymentmethodid == '36') Google Pay @elseif(!empty($order->paymentlog->pay_paymentmethodid) && $order->paymentlog->pay_paymentmethodid == '37') Apple Pay @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->trackingnumber)) @foreach ($order->trackingnumber as $ot) {{ $ot }}
@endforeach @else - @endif
Bill Ship
@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, '.', '') }}
@endif