@foreach ($orders as $order)
PACKING SLIP
Date:                   Order#:
{{ date('n/d/Y', strtotime($order->orderdate)) }}         {{ $order->orderid }}
Bill To:   (Customer ID #{{ $order->customerid }}) Ship To:
{{ $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 : "" }}
{{ $order->shipfirstname }} {{ $order->shiplastname }}
{{ $order->shipaddress1 }} @if (!empty($order->shipaddress2)) {{ $order->shipaddress2 }} @endif
{{ $order->shipcity }}, {{ $order->shipstate }} {{ $order->shippostalcode }}
{{ $order->shipcountry }}
 
 
Payment Method: Shipping Method:
Credit Card:   {{ $order->creditcardtype }}
{{ !empty($order->coustomer->firstname) ? $order->coustomer->firstname . ' ' . $order->coustomer->lastname : '' }}
************{{ $order->creditcardlastnumber }}
{{ $order->shippingmethodname }}
 
 
@foreach ($order->orderdetail as $orderdetail) @if($orderdetail->qtyonpackingslip > 0) @endif @if($orderdetail->qtyonpackingslip == null) @endif @endforeach
Code Description Qty Price Total
{{ $orderdetail->productcode }} {{ !empty($orderdetail->clientmap->pin->Name) ? $orderdetail->clientmap->pin->Name : $orderdetail->productcode . ' Part' }} {{ $orderdetail->qtyonpackingslip }} N/A N/A
{{ $orderdetail->productcode }} {{ !empty($orderdetail->clientmap->pin->Name) ? $orderdetail->clientmap->pin->Name : $orderdetail->productcode . ' Part' }} {{ $orderdetail->quantity }} N/A N/A
@endforeach