{{-- New-Unity ERP | sales/orders/pdf/sales-order-pdf.blade.php | v1.2 | 26/06/2026 --}} {{ $order->folDisplay() }}
{{-- ── HEADER ── --}}
{{ $company->commercial_name ?? $company->name ?? config('app.name') }}
RFC: {{ $company->rfc ?? '' }}
{{ $company->street ?? '' }}{{ ($company->exterior ?? '') ? ' #'.$company->exterior : '' }}, {{ $company->colony ?? '' }}
{{ $company->city ?? '' }}, {{ $company->state ?? '' }} C.P. {{ $company->postal_code ?? '' }}
SALES ORDER
{{ $order->folDisplay() }}
Date: {{ $order->created_at->format('d-m-Y') }}
Delivery Date: {{ $order->delivery_date?->format('d-m-Y') ?? '—' }}
Status: {{ strtoupper($order->statusLabel()) }}
@if($order->quote_id) Quote Ref.: COT-{{ str_pad($order->quote?->fol, 4, '0', STR_PAD_LEFT) }} @endif
{{-- ── ADDRESSES ── --}}
📦 Ship To
{{ $order->customer_name }}
@if($order->customer_contact_name)Attn: {{ $order->customer_contact_name }}
@endif @if($order->customer_address){{ $order->customer_address }}
@endif
🧾 Bill To
{{ $order->customer_name }}
RFC: {{ $order->customer_rfc ?? '—' }}
Customer #: {{ $order->customer_number ?? '—' }}
Created by: {{ $order->user?->name ?? '—' }}
{{-- ── PRODUCTS ── --}}
PRODUCTS / LINE ITEMS
@forelse($order->products as $i => $product) @empty @endforelse
# SKU Description Unit Qty Del. Pend. Unit Price Amount
{{ $i + 1 }} {{ $product->sku ?? '—' }} {{ $product->product_name }} {{ $product->unity ?? '—' }} {{ number_format($product->quantity, 0) }} {{ number_format($product->quantity_delivered, 0) }} {{ number_format($product->pendingQty(), 0) }} ${{ number_format($product->sales_price, 2) }} ${{ number_format($product->amount, 2) }}
No products
{{-- ── TOTALS ── --}}
Subtotal ${{ number_format($order->subtotal, 2) }}
Discount ({{ $order->discount_perc }}%) -${{ number_format($order->discount, 2) }}
VAT ({{ $order->tax_perc }}%) ${{ number_format($order->tax, 2) }}
TOTAL {{ $order->currency }} ${{ number_format($order->total, 2) }}
{{-- ── FOOTER: NOTES + QR ── --}}