{{ config('app.name') }}

{{ !empty($purchaseOrder['shipping_company_name']) ? $purchaseOrder['shipping_company_name'] : 'NA' }}

{{ __('lbl.to') }}

{{ !empty($purchaseOrder['ordervendor']['vendor_name']) ? $purchaseOrder['ordervendor']['vendor_name'] : 'NA' }}
{{ !empty($purchaseOrder['ordervendor']['address_line_1']) ? $purchaseOrder['ordervendor']['address_line_1'] : 'NA' }}
{{ !empty($vendor['address_line_2']) ? $vendor['address_line_2'] : 'NA' }}
{{ !empty($purchaseOrder['ordervendor']['zip']) ? $purchaseOrder['ordervendor']['country'].' '.$purchaseOrder['ordervendor']['zip'] : 'NA' }}
{{ __('lbl.phone') }} : {{ $purchaseOrder['ordervendor']['main_number'] }}
{{ __('lbl.email') }}:{{ $purchaseOrder['ordervendor']['vendor_email'] }}
{{ __('lbl.account_number') }}:{{ $purchaseOrder['ordervendor']['account_number'] }}
   
 

{{ __('lbl.po_number') }} : {{ $purchaseOrder['id'] }}

{{ !empty($purchaseOrder['shipping_contact_name']) ? $purchaseOrder['shipping_contact_name'] : 'NA' }}
{{ !empty($purchaseOrder['shipping_address_line_1']) ? $purchaseOrder['shipping_address_line_1'].',' : '--' }} {{ !empty($purchaseOrder['shipping_address_line_2']) ? $purchaseOrder['shipping_address_line_2'].',' : '--' }}
{{ !empty($purchaseOrder['shipping_city']) ? $purchaseOrder['shipping_city'].',' : '---' }} {{ !empty($purchaseOrder['shipping_countryy']) ? $purchaseOrder['shipping_countryy'].',' : '---' }} {{ !empty($purchaseOrder['shipping_zip']) ? $purchaseOrder['shipping_zip'] : '00000' }}
{{ __('lbl.phone') }}: {{ !empty($purchaseOrder['shipping_phone']) ? $purchaseOrder['shipping_phone'] : '---' }}
{{ __('lbl.email') }} : {{ !empty($purchaseOrder['shipping_email']) ? $purchaseOrder['shipping_email'] : "---" }}
 
 
 
@if(!empty($poitems)) @foreach($poitems as $poitem) @endforeach @endif
{{ __('lbl.item_description') }} {{ __('lbl.sku') }} {{ __('lbl.barcode') }} {{ __('lbl.vendor_item_id') }} {{ __('lbl.reorder_unit_type') }} {{ __('lbl.quantity') }} {{ __('lbl.price') }} {{ __('lbl.total_price') }}
{{ $poitem['product_name'] }} {{ $poitem['product_sku'] }} {{ $poitem['product_barcode'] }} {{ $poitem['vendor_item_id'] }} {{ !empty($poitem['unit_name']) ? $poitem['unit_name'] . '('.$poitem['unit_name'].')' : '-' }} {{ $poitem['item_ordered_qty'] }} {{ $poitem['item_ordered_cost'] }} {{ $poitem['item_ordered_total'] }}
Total: {{$total_po_price}}