Purchase Invoice
Supplier Info

Name: {{ $purchase->supplier->name }}

Email: {{ $purchase->supplier->email }}

Phone: {{ $purchase->supplier->phone }}

Warehouse

{{ $purchase->warehouse->name }}

Purchase Info

Date: {{ $purchase->date }}

Status: {{ $purchase->status }}

Grand Total: ${{ number_format($purchase->grand_total, 2) }}

Order Summary
@foreach ($purchase->purchaseItems as $key => $item ) @endforeach
# Product Name Quantity Net Unit Cost Discount Subtotal
{{ $key + 1 }} {{ $item->product->name }} {{ $item->quantity }} ${{ number_format($item->net_unit_cost,2) }} ${{ number_format($item->discount,2) }} ${{ number_format($item->subtotal,2) }}
Total Discount: ${{ number_format($purchase->discount,2) }}
Shipping Cost: ${{ number_format($purchase->shipping,2) }}
Grand Total: ${{ number_format($purchase->grand_total,2) }}