@php $date = fn ($value) => $value ? \Illuminate\Support\Carbon::parse($value)->format('d/m/Y') : '-'; $lead = 'I HEREBY CERTIFY'; $rest = str_starts_with($statement, $lead) ? substr($statement, strlen($lead)) : null; @endphp {{-- FORM B - Certificate of Verification of Working Standards, on the same paper as every other certificate the system issues (Certificate of Correctness, Certificate of Conformity): the orange key-pattern frame and the national and agency masthead from public/assets/certificates/blank.jpg, the faded coat of arms behind the text, the letter-spaced title, "Label: value" particulars and the signatory block (signature over the line, name, title, date) and a QR code that opens the certificate's public verification page. Everything printed is read from the request the CEO approved, which can no longer be edited. The paper is fixed to every page and the layout table's header and footer rows keep a long list clear of the masthead and the corner ornaments when it flows onto a second page. --}} Form B - {{ $request->certificate_number }} @if ($paper)@endif @if ($watermark)@endif
FORM B (Made under {{ $regulation }})
CERTIFICATE OF VERIFICATION
OF WORKING STANDARDS
Certificate No: {{ $request->certificate_number }} Date of Verification:{{ $date($request->verification_date) }}
Region: {{ $request->region_name ?: '-' }}
Office/Unit: {{ $office }}

@if ($rest !== null){{ $lead }}{{ $rest }}@else{{ $statement }}@endif

@foreach ($rows as $row) @endforeach
No. Description of Working Standard Quantity Technical Specifications
{{ $row['no'] }} {{ $row['description'] }} {{ number_format($row['quantity']) }} {{ $row['specifications'] }}
@if ($request->remarks)
Remarks: {{ $request->remarks }}
@endif
Dated this {!! $dated !!}.
@if ($signature)Signature@endif
{{ $signatoryName ?: '-' }}
{{ $signatoryTitle }}
Date:{{ $signedOn }}
@if ($qr)
Verification QR code
Scan to verify
{{ $request->certificate_number }}
@endif
Request {{ $request->reference }} - {{ $category->name }} - valid until {{ $date($request->certificate_valid_until) }}. Generated by WMA-MIS on the approval of the Chief Executive Officer.