{{ $settings["website_name"] ?? "" }}

{{ $settings["address"] ?? "" }}

{{ $settings["city"] ?? "" }}, {{ $settings["state"] ?? "" }} {{ $settings["zip"] ?? "" }}

{{ $settings["phone"] ?? "" }}

Purchase Order #{{ $detail->name }}
Date Issued: {{ date("d-m-Y", strtotime($detail->date)) }}
Status: {{ $detail->status }}
Payment status: {{ $detail->payment_status }}
Print Date: {{ date("d-m-Y") }}
Supplier:
Name: {{ $detail->suppl?->name }}
Phone: {{ $detail->suppl?->phone }}
@php $counter = 1; $total = 0; @endphp @foreach ($detail->details as $el) @php $total += $el->quantity * $el->unit_price; @endphp @endforeach
# Product Quantity Unit price Total
{{ $counter++ }} {{ $el?->products?->name }} {{ $el->quantity }} {{ number_format($el->unit_price, 2) }} {{ number_format($el->quantity * $el->unit_price, 2) }}

Subtotal:

Total:

${{ number_format($total, 2) }}

${{ number_format($total, 2) }}