@extends('admin.layout.master') @section('content') @php $itemprice2 = 0; foreach ($order->orderdetail as $orderdetail){ if((strpos($orderdetail->productcode, 'DSC-') === false) || $orderdetail->productcode == 'Q12DSC2GOLDLIN_'.$orderdetail->quantity || $orderdetail->productcode == 'KC44KDSCZ000_'.$orderdetail->quantity){ $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 {{ !empty($lastordermodify->adminuser) ? $lastordermodify->adminuser->name : "" }}
Last Modified On
{{ date('n/d/Y', strtotime($order->lastmodified)) }} at {{ date('g:i A', strtotime($order->lastmodified)) }}
Resend Order Confirmation Email 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

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

@if(!empty($order->shipcompanyname)){{ $order->shipcompanyname }}
@endif {{ $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
@if(!empty($order->coustomer)) @if($order->coustomer->paysstatetax == 'N') Tax Exempt @endif @endif

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

@if(!empty($order->billingcompanyname)){{ $order->billingcompanyname }}
@endif {{ $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 :"" }}

@if(!empty($order->customerid))

Customer ID: {{ $order->customerid }}

@endif

notes

payments

@if(!empty($order->paymentlogall)) @foreach ($order->paymentlogall as $pay) @if(!empty($pay->pay_result) && $pay->pay_result == 'FAILED') @endif @break @endforeach @endif @if ((!empty(auth()->guard('admin')->check()) && auth()->guard('admin')->user()->allow_delete_payment_log == 1)) @endif @php $refundtotal = 0; @endphp @if(!empty($order->paymentlogall)) @foreach ($order->paymentlogall as $pay) @if(!empty($pay->pay_result) && $pay->pay_result == 'FAILED') @endif @if ((!empty(auth()->guard('admin')->check()) && auth()->guard('admin')->user()->allow_delete_payment_log == 1)) @if($pay->deleted == "Y") @else @endif @endif @php if($pay->pay_result == 'CREDIT'){ $refundtotal += $pay->pay_amount; } @endphp @endforeach @endif
Payment Date Payment Type Gateway Pay Via Payment Amount TransIDReasonAction
{{ !empty($pay) ? date('n/d/Y', strtotime($pay->pay_authdate)) : "" }} @if(!empty($pay->pay_result)) {{ $pay->pay_result }} @endif @if($pay->gateway == 1) Paypal @elseif($pay->gateway == 2) Authorize @elseif($pay->gateway == 3) Affirm @elseif($pay->gateway == 0) N/A @else @if($pay->pay_id == '8453147') Authorize @else Paypal @endif @endif @if(!empty($pay->pay_details)) @if($pay->pay_paymentmethodid == '13') {{ 'Purchase order # '.$pay->pay_details }} @elseif($pay->pay_paymentmethodid == '2') {{ 'Check by Mail # '.$pay->pay_details }} @elseif($pay->pay_paymentmethodid == '16') {{ 'Money order # '.$pay->pay_details }} @elseif($pay->pay_paymentmethodid == '38') {{ 'Credit Memo # '.$pay->pay_details }} @else {{ !empty($pay->pay_details) ? $pay->pay_details : "Credit Card" }} @endif @else @if($pay->pay_paymentmethodid == '35') Affirm @elseif($pay->pay_paymentmethodid == '36') Google Pay @elseif($pay->pay_paymentmethodid == '37') Apple Pay @else Paypal @endif @endif ${{ !empty($pay) ? $pay->pay_amount : ""}} @if($pay->pay_result != 'CREDIT' && $pay->pay_result != 'AUTHORIZE' && $pay->pay_result != 'FAILED' && $pay->pay_result != 'VOIDED' && $pay->pay_paymentmethodid != '38') | @if($pay->gateway == 2) @php // Assuming $orderDate contains the order date in a valid format, e.g., "Y-m-d H:i:s" $orderDate = $order->orderdate; // Convert the order date string to a timestamp $orderDateOnly = date('Y-m-d', strtotime($orderDate)); // Get the current timestamp $currentDateOnly = date('Y-m-d'); @endphp @if($currentDateOnly > $orderDateOnly) @php $refundtitle = 'Refund' @endphp Refund @else @php $refundtitle = 'Void' @endphp Void @endif @else @php $refundtitle = 'Refund' @endphp Refund @endif @endif {{ !empty($pay) ? $pay->pay_transid : ""}}{{ !empty($pay) ? $pay->memo : ""}}Removed
@php $fraudinsightdetail = !empty($order->fraudinsightdetail) ? $order->fraudinsightdetail->score : 0; if($fraudinsightdetail > 50){ $backgroudclass = 'bg-danger'; }else{ $backgroudclass = 'bg-info'; } @endphp
fraudinsightdetail)) style="font-size:30px;" @else style="font-size:20px;" @endif>{{ !empty($order->fraudinsightdetail) ? $order->fraudinsightdetail->score." %" : 'No Score' }} Chance of risk
@if(!empty($fraudinsightdetails))
@if(!empty($fraudinsightdetails->distancetoiplocationbillinginmiles)) @else @endif @if(!empty($fraudinsightdetails->distancetoiplocationshippinginmiles)) @else @endif
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
IP -2- Bill address mi-
IP -2- Ship Address mi-
More Details

{{ $order->customer_ipaddress }}

@endif
@php $totalDue = ($order->paymentamount - $order->total_payment_received); @endphp @if ((!empty(auth()->guard('admin')->check()) && auth()->guard('admin')->user()->allow_manual_payment == 1) || (number_format((float)($totalDue), 2, '.', '') != 0.00)) @endif

shipping

SELECTED SHIPPING METHOD
is_shipped_email == 1) checked @endif id="customCheckbox2">
@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
{{ $order->shippingmethodname }}
@if($order->locked != 'Y') Edit @endif

Tracking

@foreach ($trackingnumbers as $t) @php $allGateway = strtoupper($t->gateway); if($allGateway == "USPS"){ $trakinglink = 'https://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1='.$t->trackingnumber; }else if($allGateway == "UPS"){ $trakinglink = 'https://wwwapps.ups.com/tracking/tracking.cgi?tracknum='.$t->trackingnumber; }else if($allGateway == "FEDEX"){ $trakinglink = 'https://www.fedex.com/apps/fedextrack/?action=track&trackingnumber='.$t->trackingnumber; }else if($allGateway == "DHL"){ $trakinglink = 'http://www.dhl.com/en/express/tracking.html?AWB='.$t->trackingnumber; }else{ $t->gateway = 'DHL International Shipment'; $trakinglink = 'https://webtrack.dhlglobalmail.com/orders?trackingNumber='.$t->trackingnumber.'&submit=1'; } @endphp @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 }}
Add

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

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