{{-- Document Title --}}
@if ($is_cos) CERTIFICATE OF EMPLOYMENT @else CERTIFICATE OF EMPLOYMENT AND COMPENSATION @endif
{{-- Salutation --}}
TO WHOM THIS MAY CONCERN:
@if ($is_cos) {{-- ── COS Compensation: single-sentence body ───────────────────────── --}}

This is to certify that {{ $salutation }} {{ $employee_name }}, has been hired under Contract of Service in this Bureau since {{ $date_hired }} with a monthly compensation of PhP {{ number_format($monthly_salary, 2) }}.

{{-- Purpose — COS --}}

This Certification is issued upon the request of {{ $salutation }} {{ $last_name }} for {{ rtrim($purpose, '.') }}.

@else {{-- ── Permanent Compensation: 3-table layout per template ─────────── --}}

This is to certify that {{ $salutation }} {{ $employee_name }} has been an employee of this Bureau since {{ $date_hired }} and is presently holding a permanent appointment to the position of {{ $position }}.

{{ ucfirst($pronoun) }} present annual compensations are as follows:

{{-- Table 1: Annual Salary + PERA --}} @if ($monthly_pera > 0) @endif
Salary    ({{ number_format($monthly_salary, 2) }}/mo) P {{ number_format($annual_salary, 2) }}
PERA    ({{ number_format($monthly_pera, 2) }}/mo) P {{ number_format($annual_pera, 2) }}
TOTAL P {{ number_format($annual_total1, 2) }}
{{-- Table 2: Bonuses & Allowances --}} @if (!empty($bonus_items)) @foreach ($bonus_items as $item) @endforeach
{{ $item['label'] }} P {{ number_format($item['amount'], 2) }}
TOTAL P {{ number_format($bonus_total, 2) }}
@endif {{-- Table 3: Additional Remunerations --}} @if (!empty($remuneration_items))

Further, {{ $pronoun }} received the following additional remunerations during the twelve month period ending {{ $period_ending }}.

@foreach ($remuneration_items as $item) @endforeach
{{ $item['label'] }} P {{ number_format($item['amount'], 2) }}
TOTAL P {{ number_format($remuneration_total, 2) }}
@endif {{-- Purpose — Permanent --}}

This Certification is issued upon the request of {{ $salutation }} {{ $last_name }} for {{ rtrim($purpose, '.') }}.

@endif {{-- Date --}}
{{ $issued_line }}
{{-- Signatory --}}
{{ $signatory_name }}
{{ $signatory_position }}