Sign saves the letter signature only — the draft is not issued. Forward or Return still work after Sign. Issue sends the letter to Administrative Department{{ ! empty($adviseDraftChairmanApprovalNeeded) ? ' after Chairman approval' : '' }}.
@elseif (! empty($canEditAdviseFull) && empty($forwardIncrementsPcApproval))Forward sends the advice to the Chairman for review. Only you can sign and issue after Chairman approval.
@elseif (! empty($adviseContentOnlyEdit))You may edit decisions and approved cost only. The Chief Development officer forwards to the Chairman and issues the letter.
@endif @php /** @var array
GOVERNMENT OF SINDH
PLANNING & DEVELOPMENT DEPARTMENT
(DEVELOPMENT SECTION)
@if (! empty($qr_image_url))
{{ $_mwsAlDec($letter_number) }}
@if (! empty($letter_number_is_preview))
Assigned on generate
@endif
@endif
OFFICE MEMORANDUM
SUBJECT:
{{ $_mwsAlDec($subject_plain) }} @if (! empty($canEditAdvise)) @endif
@forelse ($agenda_lines as $idx => $line)
@php
$t = trim($line);
$tPlain = trim($_mwsAlDec(strip_tags($t)));
$isSdg = str_starts_with(strtoupper($tPlain), 'SDG');
$isWholeMeta = preg_match('/^\(?(revised|modified)\)?$/i', $tPlain) === 1
|| preg_match('/^\(adp\s*#/i', $tPlain) === 1
|| preg_match('/^\(uid:/i', $tPlain) === 1
|| preg_match('/^\(approved cost/i', $tPlain) === 1
|| preg_match('/^\d{4}-\d{2}$/', $tPlain) === 1;
$agClass = ($isSdg || $isWholeMeta) ? 'ag-sdg' : 'ag-scheme';
$isApprovedCostLine = str_contains(strtolower($tPlain), 'approved cost');
$agendaCostEditable = ! empty($agenda_approved_cost_editable) && ! empty($canEditAdvise) && $isApprovedCostLine;
$agendaLineHtml = $_mwsAlDecHtml($t);
if ($agendaCostEditable) {
$costDisp = $_mwsAlCostMillion($approved_cost);
$costInputVal = $_mwsAlFormVal(($editDefaults['approved_cost'] ?? '') !== '' ? ($editDefaults['approved_cost'] ?? '') : $approved_cost);
$costEditableHtml = '(Approved cost Rs.'.$costDisp.' million)';
$agendaLineHtml = preg_replace(
'/\(Approved cost\s+Rs\.[^)]*million\)/i',
$costEditableHtml,
$agendaLineHtml
) ?? $agendaLineHtml;
}
@endphp
@if ($loop->first)
Agenda No. {{ $_mwsAlDec($agenda_item_no) }} {!! $agendaLineHtml !!} @else{!! $agendaLineHtml !!} @endif @emptyAgenda No. {{ $_mwsAlDec($agenda_item_no) }} @endforelse
@if (! empty($canEditAdvise))
@endif
@php
$hasAdvLetterSigs = ! empty($has_advise_letter_signatures);
$advSignersStackA = $advise_signers_stack_a ?? [];
$advSignersStackB = $advise_signers_stack_b ?? [];
@endphp
@if ($hasAdvLetterSigs)
@else
{!! $_mwsAlDecHtml($body_lead_text) !!} @if (! empty($canEditAdvise))
Encl. As above
The Secretary,
{{ $_mwsAlDec($department_proper) }}
Government of Sindh,
Karachi.
@php
$mwsAlSigState = is_array($adviseLetterSignature ?? null) ? $adviseLetterSignature : [];
$mwsAlSigEffective = trim((string) ($mwsAlSigState['effective_url'] ?? ''));
$mwsAlSigDrawn = trim((string) ($mwsAlSigState['drawn_url'] ?? ''));
$mwsAlSigUploaded = trim((string) ($mwsAlSigState['uploaded_url'] ?? ''));
$mwsAlSigHasDocument = ! empty($mwsAlSigState['has_document_signature']);
$__alSigMeta = is_array($adviseLetterSignatoryMeta ?? null) ? $adviseLetterSignatoryMeta : [];
$__alSigDesig = trim((string) ($__alSigMeta['designation'] ?? ''));
$__alSigPhone = trim((string) ($__alSigMeta['phone'] ?? ''));
@endphp
@if ($mwsAlSigEffective !== '')
@if (! empty($canEditAdviseSignature))
{{ ! empty($adviseStandaloneCirculation) ? 'Draw or upload, then click Sign to save. The letter is not issued until you click Issue.' : 'Letter preview only until you save the advise letter.' }}
Only the meeting organizer can add or change the signature on this advise letter. @endif @if ($__alSigDesig !== ''){{ mb_strtoupper($_mwsAlDec($__alSigDesig), 'UTF-8') }}
@endif
@if ($__alSigPhone !== '')
PH: {{ $_mwsAlDec($__alSigPhone) }}
@endif
No. {{ $_mwsAlDec($reference_display ?? '') }}
@if (! empty($canEditAdvise))
No.
@endif
Karachi, dated: {{ $_mwsAlDec($letter_date_formatted) }}
A copy is forwarded for information & necessary action to:
C.C.to:-
|
|
ADVICE ANNEXURE
{{ $_mwsAlDec($table_title) }}@if (! empty($canEditAdvise)) @endif(Rs. in Million)
|
|||||||||||||||||||||||||||
|
ADVICE ANNEXURE
{{ $_mwsAlDec($coaBlock['heading'] ?? '') }}(Amounts in PKR, as in PC-I cost estimates)
|
|||||||||||||||||||||||||||||||||||||||||||