@if(!empty($order->paymentlogall))
@foreach ($order->paymentlogall as $pay)
Payment Date
{{ !empty($pay) ? date('n/d/Y', strtotime($pay->pay_authdate)) : "" }}
Payment Type
@if(!empty($pay->pay_result))
{{ $pay->pay_result }}
@endif
Paid Via
@if(!empty($pay->pay_details))
@if($pay->pay_paymentmethodid == '13')
{{ 'Purchase order # '.$pay->pay_details }}
@else
{{ !empty($pay->pay_details) ? $pay->pay_details : "Credit Card" }}
@endif
@else
Paypal
@endif
Payment Amount${{ !empty($pay) ? $pay->pay_amount : ""}} | Refund
TransID{{ !empty($pay) ? $pay->pay_transid : ""}}
@endforeach
@endif
@php
$itemprice2 = 0;
foreach ($order->orderdetail as $orderdetail){
$itemprice2 += $orderdetail->totalprice;
}
$subtotal = $itemprice2;
$totalDue = (($subtotal-$order->coupon_discount) + $order->totalshippingcost + $order->shippingsurcharges + $order->salestax1) - $order->paymentamount;
@endphp
@if ((number_format((float)($totalDue), 2, '.', '')) > 0)
Total Due${{ number_format((float)($totalDue), 2, '.', '') }} Capture
@endif