{{-- ============================== --}} {{-- HEADER LOGO SECTION --}} {{-- ============================== --}}

DAP Bldg., San Miguel Ave., Pasig City

P.O. Box 12788 Ortigas Center, Pasig City

Telephone Nos.: 8631-21-42 / 8631-09-21 to 30 loc 119

PURCHASE ORDER

@php if (! function_exists('convertToWords')) { function convertToWords($number) { $number = number_format($number, 2, '.', ''); list($pesos, $centavos) = explode('.', $number); $pesosWords = strtoupper(trim(numberToWords(intval($pesos)))); if ($centavos > 0) { return $pesosWords . " PESOS AND " . strtoupper($centavos) . "/100"; } return $pesosWords . " PESOS"; } function numberToWords($number) { $words = [ 0 => 'zero', 1 => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => 'five', 6 => 'six', 7 => 'seven', 8 => 'eight', 9 => 'nine', 10 => 'ten', 11 => 'eleven', 12 => 'twelve', 13 => 'thirteen', 14 => 'fourteen', 15 => 'fifteen', 16 => 'sixteen', 17 => 'seventeen', 18 => 'eighteen', 19 => 'nineteen', 20 => 'twenty', 30 => 'thirty', 40 => 'forty', 50 => 'fifty', 60 => 'sixty', 70 => 'seventy', 80 => 'eighty', 90 => 'ninety' ]; $scales = ['', 'thousand', 'million', 'billion', 'trillion']; if ($number < 0) { return 'negative ' . numberToWords(abs($number)); } if ($number < 21) { return $words[$number]; } if ($number < 100) { $tens = intval($number / 10) * 10; $units = $number % 10; return $words[$tens] . (($units) ? ' ' . $words[$units] : ''); } if ($number < 1000) { $hundreds = intval($number / 100); $remainder = $number % 100; return $words[$hundreds] . ' hundred' . ($remainder ? ' ' . numberToWords($remainder) : ''); } $scaleIndex = 0; $result = ''; while ($number > 0) { $chunk = $number % 1000; if ($chunk > 0) { $result = numberToWords($chunk) . ' ' . $scales[$scaleIndex] . ($result ? ' ' . $result : ''); } $number = intval($number / 1000); $scaleIndex++; } return trim($result); } } @endphp {{-- ===================================================== --}} {{-- SUPPLIER MATRIX TABLE (Top Full Matrix) --}} {{-- ===================================================== --}}
Supplier: {{$quotation->supplier->business_name}} P.O. No.: {{$quotation->project->po_number}}
Address: {{$quotation->supplier->address}} P.O. Date: {{$quotation->project->po_date}}
TIN: {{$quotation->supplier->tax_identification_no}} P.R. No.: {{$quotation->project->pr_number}}
Procurement Mode: {{$quotation->project->mode_of_procurement}} P.R. Date: {{$quotation->project->pr_date}}
{{-- Merge across all supplier columns --}}

Gentlemen:

Please furnish this Office the following articles subject to the terms and conditions contained herein.
Place of Delivery: {{$quotation->supplier->business_name}} Delivery Term {{$quotation->project->po_number}}
Date of Delivery {{$quotation->supplier->address}} Payment Mode {{$quotation->project->po_date}}
# Stock No. Unit Description Quantity Unit Cost Amount
1 {!! nl2br(e(str_replace(';', "\n", $quotation->project->project_description))) !!}

{!! nl2br(e(str_replace(';', "\n", $quotation->project->scope_of_work))) !!}
{{$quotation->quantity}} ₱ {{ number_format($quotation->unit_cost, 2) }} ₱ {{ number_format($quotation->bid_amount, 2) }}
(Total Amount in Words) {{ convertToWords($quotation->bid_amount) }} ₱ {{ number_format($quotation->bid_amount, 2) }}
{{-- SIGNATORY BLOCK --}} @php $defaults = \App\Models\SignatoryDefault::first(); @endphp

In case of failure to make full delivery within the specified date above,

a penalty of one-tenth (1/10) of one percent (1%) for every day of delay shall be imposed.

Conforme:
{{ $quotation->supplier->business_name }}
SIGNATURE OVER PRINTED NAME OF SUPPLIER


DATE

Very truly yours,
{{ optional($defaults)->poAuthorizedOfficial->name ?? '_________________________' }}
{{ optional($defaults->poAuthorizedOfficial)->position_title ?? '' }}
Authorized Official
Funds Available:
{{ optional($defaults)->dcAccounting->name ?? '_________________________' }}
{{ optional($defaults->dcAccounting)->position_title ?? '' }}
IMPORTANT: SUBJECT TO TERMS & CONDITIONS AT THE BACK HEREOF PO#: 501328
DAP-ADMIN-PO, F5, Rev.0