@extends('admin.layout.master') @section('content') @php $itemprice2 = 0; foreach ($order->orderdetail as $orderdetail){ if((strpos($orderdetail->productcode, 'DSC') === false)){ $itemprice2 += $orderdetail->totalprice; } } $subtotal = $itemprice2; $totalDue = ($order->paymentamount - $order->total_payment_received); @endphp
@if (number_format((float)($totalDue), 2, '.', '') != 0.00) @if (number_format((float)($totalDue), 2, '.', '') > 0) @else @endif @else @endif @if(!empty($lastordermodify)) @else @endif
ORDER #:
{{ $order->orderid }} ({{ $order->vol_oid }})
ORDER DATE:
{{ date('n/d/Y g:i A', strtotime($order->orderdate)) }}
TOTAL:
${{ number_format((float)($order->paymentamount), 2, '.', '') }}
DUE:
-${{ number_format((float)($totalDue), 2, '.', '') }}
DUE:
${{ number_format((float)(abs($totalDue)), 2, '.', '') }}
DUE:
${{ number_format((float)($totalDue), 2, '.', '') }}
TYPE:
{{ $order->order_entry_system }}
STATUS: Last Modified On
{{ date('n/d/Y', strtotime($lastordermodify->created_at)) }} at {{ date('g:i A', strtotime($lastordermodify->created_at)) }} by {{ $lastordermodify->adminuser->name }}
Last Modified On
{{ date('n/d/Y', strtotime($order->lastmodified)) }} at {{ date('g:i A', strtotime($order->lastmodified)) }}
Invoice Packing Slip
@foreach (['danger', 'warning', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg))

{{ Session::get('alert-' . $msg) }} ×

@endif @endforeach
@php $colmd=3; @endphp

ESCALATION & SALES REP

@if(!empty($salesrep_user_name)) {{ $salesrep_user_name }} @else N/A @endif

SHIP TO     @if($order->locked != 'Y') Edit @endif                          UnVerified

{{ $order->shipfirstname }} {{ $order->shiplastname }}

{{ $order->shipaddress1 }}
@if(!empty($order->shipaddress2)) {{ $order->shipaddress2 }}
@endif {{ $order->shipcity }}, {{ $order->shipstate }} {{ $order->shippostalcode }}
{{ $order->shipcountry }}

{{ !empty($order->shipphonenumber) ? $order->shipphonenumber : $order->billingphonenumber }}

BILL TO     @if($order->locked != 'Y') Edit @endif

{{ $order->billingfirstname }} {{ $order->billinglastname }}

{{ $order->billingaddress1 }}
@if(!empty($order->billingaddress2)) {{ $order->billingaddress2 }}
@endif {{ $order->billingcity }}, {{ $order->billingstate }} {{ $order->billingpostalcode }}
{{ $order->billingcountry }}

{{ $order->billingphonenumber }}

{{ !empty($order->coustomer->emailaddress) ? $order->coustomer->emailaddress :"" }}

notes

payments

@php $refundtotal = 0; @endphp @if(!empty($order->paymentlogall)) @foreach ($order->paymentlogall as $pay) @php if($pay->pay_result == 'CREDIT'){ $refundtotal += $pay->pay_amount; } @endphp @endforeach @endif
Payment Date Payment Type Pay Via Payment Amount TransID
{{ !empty($pay) ? date('n/d/Y', strtotime($pay->pay_authdate)) : "" }} @if(!empty($pay->pay_result)) {{ $pay->pay_result }} @endif @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 ${{ !empty($pay) ? $pay->pay_amount : ""}} @if($pay->pay_result != 'CREDIT' && $pay->pay_result != 'AUTHORIZE' && $pay->pay_result != 'FAILED') | Refund @endif {{ !empty($pay) ? $pay->pay_transid : ""}}
@php $fraudinsightdetail = !empty($order->fraudinsightdetail) ? $order->fraudinsightdetail->score : 0; if($fraudinsightdetail > 50){ $backgroudclass = 'bg-danger'; }else{ $backgroudclass = 'bg-info'; } @endphp
{{ !empty($order->fraudinsightdetail) ? $order->fraudinsightdetail->score : 0 }} % Chance of risk
@if(!empty($fraudinsightdetails))
Anonymous IP address @if($fraudinsightdetails->isanonymousproxy == '1') YES @else NO @endif
High risk email @if($fraudinsightdetails->ishighriskemail == '1') YES @else NO @endif
Shipping zip/postal matches city @if($fraudinsightdetails->ispostalincityshippingaddress == '1') YES @else NO @endif
Billing zip/postal matches city @if($fraudinsightdetails->ispostalincitybillingaddress == '1') YES @else NO @endif
Is high risk country @if($fraudinsightdetails->ishighriskshippingaddress == '1') YES @else NO @endif
More Details

{{ $order->customer_ipaddress }}

@endif
@php $totalDue = ($order->paymentamount - $order->total_payment_received); @endphp @if (number_format((float)($totalDue), 2, '.', '') != 0.00) @endif

shipping

Tracking

SELECTED SHIPPING METHOD
is_shipped_email == 1) checked @endif id="customCheckbox2">
{{ $order->shippingmethodname }}
@if($order->locked != 'Y') Edit  Add @endif
@if(!empty($order->shippingemaillog)) (Shipped email has been sent {{ date('n/d/Y g:i A',strtotime($order->shippingemaillog->created_at)) }} CT) @else (The shipment email is not sent) @endif
@foreach ($trackingnumbers as $t) @endforeach
Ship Date Tracking # Carrier Shipping Method Cost Action
{{ date('n/d/Y',strtotime($t->shipdate)) }} {{ $t->trackingnumber }} {{ $t->gateway }} {{ $t->shippingmehthodname }} ${{ $t->shipment_cost }}

Products @if($order->locked != 'Y') Edit Add @endif

@foreach ($order->orderdetail as $orderdetail)
Product Code Product Name / Product Note Qty Price Cost Received On Hold Packing Slip Total Price