@if($inv) Invoice #: {{ $inv->id ?? '' }}
Billed Date: {{ convertToMdy($inv->invoice_date) ?? '' }}
Due Date: {{ convertToMdy($inv->due_date) ?? '' }}
REF #: {{ $inv->loadid ?? '' }} @else No Invoice Data Available @endif

 

@if(!empty($inv->ORDER_ID) && $inv->STAT_COMMENT == 'REVISED INVOICE')

REVISED INVOICE - {{ convertToMdy($inv->CHANGED)}}

@endif
BILL TO SHIPPER CONSIGNEE
{{ $inv->name ?? $inv->customer_name ?? '' }}
{{ $inv->ADDRESS_1 ?? '' }}
{{ $inv->CITY ?? '' }}, {{ $inv->PROVINCE ?? '' }} {{ $inv->POSTAL_CODE ?? '' }}
Email: {{ $inv->CONTACT_EMAIL ?? $inv->EMAIL_ADDRESS ?? '' }}
Phone: {{ $inv->phone ?? $inv->BUSINESS_PHONE ?? '' }}






 

COMMODITY LOAD TYPE WEIGHT
{{ $inv->comodity ?? ''}} {{ $inv->load_type ?? ''}} {{ $inv->weight ?? ''}}

 

Linehaul Charges QTY Rate Charges
LOAD #: {{ $inv->loadid ?? ''}} - {{ $inv->pickupaddress ?? ''}} {{ $inv->ocity ?? ''}} {{ $inv->ostate ?? ''}} {{ $inv->ozip ?? ''}} to {{ $inv->deliveraddress ?? ''}} {{ $inv->dcity ?? ''}} {{ $inv->dstate ?? ''}} {{ $inv->dzip ?? ''}}   miles - {{$total_miles ?? 0}} @if($inv) $ {{ number_format($inv->load_rate ?? 0, 2) }} @else $ 0.00 @endif

@php $totalAmount = 0; $load_extra_charge_type = config('custom.load_extra_charge_type'); @endphp @foreach($ec as $charge) @php $totalAmount += ($charge->amount); @endphp @endforeach
Accessorial Charges      
{{ $load_extra_charge_type[$charge->type] ?? '' }} @if($charge->disp_on_inv === "1") - {{ $charge->note ?? '' }} @endif   ${{ number_format($charge->amount, 2) ?? ''}}
Totals   ${{ number_format($totalAmount, 2) ?? ''}}

 

@if($inv && ($inv->factor_name || $inv->factor_email || $inv->factor_phone || $inv->factor_address))
Factor Name Factor Email Factor Phone Factor Address
{{ $inv->factor_name ?? '' }} {{ $inv->factor_email ?? '' }} {{ $inv->factor_phone ?? '' }} {{ $inv->factor_address ?? '' }}
@endif @php $totalInv= 0; $totalInv = $totalAmount + ($inv->load_rate ?? 0); @endphp

Total Invoiced: {{ number_format($totalInv, 2) ?? ''}} USD