@extends('layouts.print') @section('title', $po->po_number) @section('kind', 'Purchase order') @section('number', $po->po_number) @section('status', title_case_words($po->status)) @section('content')

Supplier

{{ $po->supplier?->name ?: '—' }}
@if ($po->supplier?->contact_person)
Attn. {{ $po->supplier->contact_person }}
@endif @if ($po->supplier?->email)
{{ $po->supplier->email }}
@endif @if ($po->supplier?->phone)
{{ $po->supplier->phone }}
@endif @if ($po->supplier?->address)
{{ $po->supplier->address }}
@endif

Deliver to

{{ $po->warehouse?->name ?: 'Default warehouse' }}
@if ($po->warehouse?->code)
{{ $po->warehouse->code }}
@endif
Order date{{ $po->order_date?->format('d M Y') }}
Expected{{ $po->expected_date?->format('d M Y') ?: '—' }}
Status{{ title_case_words($po->status) }}
@forelse ($po->items as $item) @empty @endforelse
ItemQtyReceived Unit costAmount
{{ $item->description }} @if ($item->product)
{{ $item->product->sku }}
@endif
{{ rtrim(rtrim(number_format($item->quantity, 2), '0'), '.') }} {{ rtrim(rtrim(number_format($item->quantity_received, 2), '0'), '.') }} {{ money($item->unit_cost) }} {{ money($item->amount) }}
No items.
@if ($po->tax_amount > 0)@endif
Subtotal{{ money($po->subtotal) }}
Tax{{ money($po->tax_amount) }}
Total{{ money($po->total) }}
@if ($po->notes)

Notes

{{ $po->notes }}

@endif @endsection