@extends('layouts.app') @php $dec = static fn ($v): string => html_entity_decode((string) ($v ?? ''), ENT_QUOTES | ENT_HTML5, 'UTF-8'); $paper = is_array($positionPaper ?? null) ? $positionPaper : []; $edit = is_array($editDefaults ?? null) ? $editDefaults : $paper; $costRows = is_array($paper['cost_rows'] ?? null) ? $paper['cost_rows'] : []; $observations = is_array($paper['observations'] ?? null) ? $paper['observations'] : []; if ($observations === [] && ! empty($canEdit)) { $observations = [['pd_observation' => '', 'ad_reply' => '', 'compliance_remarks' => '']]; } $schemeLabel = trim((string) ($paper['scheme_uid'] ?? '')); if ($schemeLabel === '') { $schemeLabel = 'PC Form #'.(int) ($pcForm->id ?? 0); } $titleLine = trim($dec($paper['project_title'] ?? '—').' '.$dec($paper['adp_reference'] ?? '')); @endphp @section('title', 'Position Paper — '.$schemeLabel) @push('styles') @endpush @push('styles_after_adminlte') @endpush @section('contents')
← Back to PC Forms @if (! empty($canEdit)) @endif
@if (! empty($canEdit))

Part-A is taken from the PC-IV (read-only). Light-blue fields are for Planning Officer narrative and observations.

@endif
{{ $dec($paper['government_line'] ?? 'GOVERNMENT OF SINDH') }}
{{ $dec($paper['department_line'] ?? 'PLANNING AND DEVELOPMENT DEPARTMENT') }}
SECTOR: {{ $dec($paper['sector'] ?? '—') }}
SUB SECTOR: {{ $dec($paper['sub_sector'] ?? '—') }}
Position Paper
PART-A (Project Profile)
1. Project Title: {{ $titleLine }}
2. Location: {!! nl2br(e($dec($paper['location'] ?? '—'))) !!}
3. Authorities Responsible for;
(i) Sponsoring Agency
{{ $dec($paper['sponsoring_agency'] ?? '—') }}
(ii) Executing Agency
{{ $dec($paper['executing_agency'] ?? '—') }}
(iii) Operation & Maintenance
{!! nl2br(e($dec($paper['om_agency'] ?? '—'))) !!}
4. Date of Receipt of PC-IV in P&D: {{ $dec($paper['receipt_date'] ?? '—') }}
5. Cost of Project:
(Rs. in million)
@forelse ($costRows as $row) @if (trim((string) ($row['label'] ?? '')) === '' && trim((string) ($row['total'] ?? '')) === '') @continue @endif @empty @endforelse
Source Local FPA Total FEC
{{ $dec($row['label'] ?? '') }} {{ $dec($row['local'] ?? '') }} {{ $dec($row['fpa'] ?? '') }} {{ $dec($row['total'] ?? '') }} {{ $dec($row['fec'] ?? '') }}
6. Expenditure Incurred: {{ $dec($paper['expenditure_incurred'] ?? '—') }}
7. Period of Implementation: {!! nl2br(e($dec($paper['implementation_periods'] ?? '—'))) !!}
8. Plan Framework:
a. Sector Strategy:
{{ $dec($paper['sector_strategy'] ?? '') !== '' ? $dec($paper['sector_strategy']) : '—' }}
9. Project Scope and Brief Description:
{{ $dec($paper['project_scope'] ?? '') !== '' ? $dec($paper['project_scope']) : '—' }}
History of PC-IV:
@if (! empty($canEdit)) @else
{{ $dec($paper['history_of_pc_iv'] ?? '') !== '' ? $dec($paper['history_of_pc_iv']) : '—' }}
@endif
10. {{ $dec($paper['section_comments_heading'] ?? 'COMMENTS OF CONCERNED SECTION:') }}
@foreach ($observations as $idx => $obs) @foreach (['pd_observation', 'ad_reply', 'compliance_remarks'] as $col) @endforeach @endforeach
S.No. P&D Observation AD’s Reply Status of Compliance / Remarks
{{ $idx + 1 }} @if (! empty($canEdit)) @else
{{ $dec($obs[$col] ?? '') !== '' ? $dec($obs[$col]) : '—' }}
@endif
@if (! empty($canEdit))
@endif
11. CONCLUSION / RECOMMENDATIONS:
@if (! empty($canEdit)) @else
{{ $dec($paper['conclusion'] ?? '') }}
@endif
@endsection @push('scripts') @endpush