@php $p = $reportWizardProject ?? null; $a4 = $reportPartA4FinancialPrefill ?? []; $ucOpts = $reportVisitUcTownOptions ?? []; $distOpts = $reportVisitDistrictOptions ?? []; $eaRows = $reportExecutingAgencyPrefillRows ?? []; $eaFirst = is_array($eaRows) && count($eaRows) > 0 ? trim((string) ($eaRows[0] ?? '')) : ''; $locBits = array_filter([implode(', ', array_values($ucOpts)), implode(', ', array_values($distOpts))], static fn ($s) => trim((string) $s) !== ''); $locPref = implode(' — ', $locBits); $nameBase = 'report[erp_profile]'; $bp = 'report.erp_profile.'; $r = $report ?? []; $prefAdp = trim((string) ($reportStoredAdpNumber ?? '')); $prefUid = $p ? trim((string) ($p->code ?? '')) : ''; $prefName = $p ? trim((string) ($p->name ?? '')) : ''; $prefDept = $p ? trim((string) ($p->department?->name ?? '')) : ''; $evalLabels = [ 'ser' => 'Summative Evaluation Report (SER)', 'ier' => 'Impact Evaluation Report (IER)', 'tpv' => 'Third Party Validation Report (TPR)', ]; $evalLabel = $evalLabels[$reportType ?? ''] ?? ($reportType ?? ''); $today = now()->format('Y-m-d'); $subBy = old($bp.'submitted_by', data_get($r, 'erp_profile.submitted_by', auth()->user()?->name ?? '')); $mecReportIdForErp = (int) ($mecReportWorkflowId ?? 0); $reportDraftIdForErp = (int) old('report_draft_id', $reportDraftId ?? 0); $erpDocVersions = mec_report_erp_document_versions_for_display($r); $erpCurrentStorage = trim((string) data_get($r, 'erp_profile.attachment_word_storage', '')); $erpCurrentName = trim((string) data_get($r, 'erp_profile.attachment_word_original_name', '')); $erpCurrentDownloadUrl = $erpCurrentStorage !== '' ? mec_report_erp_document_download_url($reportDraftIdForErp, $mecReportIdForErp, -1) : ''; $mecReportWfModeErp = $mecReportWorkflowMode ?? null; $erpCanReplaceDocument = $mecReportWfModeErp === null || in_array($mecReportWfModeErp, ['meo_resubmit', 'initiator_resubmit'], true) || in_array($mecReportWfModeErp, ['rd', 'sdm', 'dg'], true); $erpWfAllowClass = is_string($mecReportWfModeErp) && in_array($mecReportWfModeErp, ['rd', 'sdm', 'dg'], true) ? 'mec-wf-allow--'.$mecReportWfModeErp : ''; @endphp
| Evaluation report (ERP plan) | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Type of Evaluation Report | {{ $evalLabel }} | ||||||||
| ADP No. | UID No. | ||||||||
| Name of Scheme | |||||||||
| Location of Scheme | |||||||||
| Administrative Department | |||||||||
| Executing Agency | |||||||||
| Contractor(s) | |||||||||
| Approved Cost of the Scheme (as per Original PC-I) — PKR (million) | |||||||||
| Capital | Revenue | ||||||||
| Total | |||||||||
| Approved Cost of the Scheme (as per last Revised PC-I) — PKR (million) | |||||||||
| Capital | Revenue | ||||||||
| Total | |||||||||
| Final Expenditure at the time of closure — PKR (million) | |||||||||
| Capital | Revenue | ||||||||
| Total | |||||||||
| Physical Progress % at the time of closure | Financial Progress % at the time of closure | ||||||||
| Date of last A.A | Date of Completion as per (Revised) PC-I | ||||||||
| Date of Actual Closure | Approved period for the scheme | ||||||||
| Actual time taken by the scheme | |||||||||
| Date of Submission of PC-IV | Date of Submission of PC-V | ||||||||
| Date of Assignment | Submission date | ||||||||
| Submitted by | |||||||||
| Upload attachment |
Microsoft Word only ( {{ __('You may download the current document, edit it offline, and upload a revised Word file before forwarding to the next reviewer.') }} @elseif ($mecReportWfModeErp === 'sdm'){{ __('You may download the current document, edit it offline, and upload a revised Word file before forwarding or approving.') }} @elseif ($mecReportWfModeErp === 'dg'){{ __('You may download the current document, edit it offline, upload a revised Word file, then use Save document before Approve.') }} @endif @elseif ($erpCurrentName !== ''){{ __('Attachment is read-only at this step.') }} @endif @if (count($erpDocVersions) > 0){{ __('Document history') }}
|
||||||||