@php $r = $po->purchaseRequest; $supplier = $po->supplier; $currencyCode = $po->currency->code ?? ''; $companyName = config('procurement.company.legal_name', config('app.name')); $companyTax = config('procurement.company.tax_card_no'); $companyPhone = config('procurement.company.phone'); $companyAddress = config('procurement.company.address'); $governorate = $po->governorate ?? config('procurement.company.governorate'); $lines = $po->lines->isNotEmpty() ? $po->lines : collect([(object) [ 'line_no' => 1, 'item_code' => $r->project_code, 'description' => $r->product_service_description, 'quantity' => $r->quantity ?? 1, 'unit' => $r->unit, 'unit_price' => $r->quantity ? $po->amount / max(1, $r->quantity) : $po->amount, 'total' => $po->amount, 'intervention_start' => $r->desired_start_date, 'delivery_date' => $r->desired_end_date ?? $po->delivery_date, ]]); @endphp {{-- HEADER avec branding NWA --}}
{{ $companyName }}
National Water Alliance
@if($companyAddress) {{ $companyAddress }}
@endif @if($companyTax) Tax Card N° : {{ $companyTax }} @endif @if($companyPhone) — Tel : {{ $companyPhone }} @endif

PURCHASE ORDER

{{ $po->po_number }}

Order Date : {{ optional($po->created_at)->format('d/m/Y') }}
@if($po->reference_date) Reference Date : {{ $po->reference_date->format('d/m/Y') }}
@endif @if($po->supplier_ref_no) Supplier Ref. No. : {{ $po->supplier_ref_no }}
@endif @if($governorate) Governorate : {{ $governorate }} @endif
{{-- BUYER / SUPPLIER --}}
BUYER
{{ $companyName }}
@if(optional($r->serviceDepartment)->name) Department : {{ $r->serviceDepartment->name }}
@endif @if($r->division) Division : {{ $r->division }}
@endif @if($r->project_name) Project : {{ $r->project_name }}
@endif @if($r->project_code) Project Code : {{ $r->project_code }}
@endif Buyer : {{ $po->generatedBy->name ?? '—' }}
Buyer Email : {{ $po->generatedBy->email ?? '—' }}
@if($po->buyer_phone) Buyer No : {{ $po->buyer_phone }} @endif
SUPPLIER
{{ $supplier->name }}
@if($supplier->address) {{ $supplier->address }}
@endif @if($supplier->contact_email) Email : {{ $supplier->contact_email }}
@endif @if($supplier->phone) Phone : {{ $supplier->phone }}
@endif @if($r->supplier_account_manager_name) Account Manager : {{ $r->supplier_account_manager_name }}
@endif @if($supplier->tax_id) Tax ID : {{ $supplier->tax_id }} @endif
{{-- LINES --}}

Order Detail

@foreach($lines as $line) @endforeach
# Item Code Description Qty Unit Unit Price excl. tax Currency Intervention start Total Price
{{ $line->line_no }} {{ $line->item_code ?? '—' }} {{ $line->description }} {{ rtrim(rtrim(number_format((float) $line->quantity, 4, '.', ''), '0'), '.') }} {{ $line->unit ?? '—' }} {{ number_format((float) $line->unit_price, 2, '.', ',') }} {{ $currencyCode }} {{ optional($line->intervention_start)->format('d/m/Y') ?? '—' }} {{ number_format((float) $line->total, 2, '.', ',') }}
Subtotal{{ number_format((float) $po->amount, 2, '.', ',') }} {{ $currencyCode }}
TOTAL AMOUNT{{ number_format((float) $po->amount, 2, '.', ',') }} {{ $currencyCode }}
{{-- CONDITIONS --}}

Terms & Conditions

@if($po->liquidated_damages) @endif @if($po->warranty) @endif @if($po->bank_guarantees) @endif @if($po->specific_conditions) @endif
Payment Terms {{ $po->payment_terms ?? 'Net 30 days from invoice receipt' }}
Incoterms {{ $po->incoterms ?? '—' }}
Liquidated Damages {{ $po->liquidated_damages }}
Warranty {{ $po->warranty }}
Bank Guarantees {{ $po->bank_guarantees }}
Specific Conditions of Purchase {{ $po->specific_conditions }}
General Conditions of Purchase {{ $po->general_conditions ?? 'See Annexure 1 attached.' }}
{{-- 4 NIVEAUX D'APPROBATION --}}

Approval

Activity Head
Name : {{ $po->generatedBy->name ?? '' }}
Date :
Procurement Manager
Name :
Date :
Country Manager
Name :
Date :
CEO / COO
Name :
Date :
RECEIPT OF ORDER MUST BE CONFIRMED WITHIN TWO BUSINESS DAYS
in attached form, duly signed and stamped — return to {{ $po->generatedBy->email ?? config('mail.from.address') }}
{{-- ANNEXURE 1 : Acknowledge of Receipt --}}

Annexure 1 — Acknowledge of Receipt

P.O. {{ $po->po_number }} — issued on {{ optional($po->created_at)->format('d/m/Y') }} by {{ $companyName }}.

P.O. registered under reference {{ $po->supplier_reference ?? '____________________' }}
Acknowledgement Date {{ optional($po->acknowledged_at)->format('d/m/Y') ?? '__/__/____' }}
Supplier Name and Contacts {{ $supplier->name }} — {{ $supplier->contact_email ?? '' }}
Name of the Signatory {{ $po->acknowledged_signer_name ?? '____________________' }}
Function {{ $po->acknowledged_signer_function ?? '____________________' }}
Focal Point {{ $po->focal_point ?? '____________________' }}
Signature @if($po->acknowledgement_signature_path) (electronically signed) @else ____________________ @endif
Company Stamp @if($po->company_stamp_path) (stamp on file) @else [ stamp here ] @endif
{{-- ANNEXURE 2 : General Conditions of Purchase --}}

Annexure 2 — General Conditions of Purchase

1. Acceptance. Acceptance of this PO by the Supplier is subject to the receipt of the duly signed and stamped Acknowledgement of Receipt within two (2) business days. Any deviation must be expressly agreed in writing.

2. Compliance Documentation. The Supplier shall provide all certificates, manuals, datasheets and compliance documents in English, prior to delivery.

3. Liquidated Damages. {{ $po->liquidated_damages ?? 'In case of late delivery, liquidated damages of 0.5% of the PO amount per calendar week of delay shall apply, capped at 10% of the PO amount.' }}

4. Warranty. {{ $po->warranty ?? 'Goods and services are warranted for twelve (12) months from delivery / acceptance.' }}

5. Bank Guarantees. {{ $po->bank_guarantees ?? 'Advance payment guarantee and/or performance guarantee may be required as specified in the specific conditions.' }}

6. Governing Law. This PO is governed by the laws of the Sultanate of Oman. Disputes shall be settled exclusively by the courts of {{ $governorate }}.

 

{{ $companyName }} — All rights reserved.