@php $_mwsNlDec = static fn ($v): string => mws_notice_decode_plain((string) ($v ?? '')); $_mwsNlDecHtml = static fn ($v): string => mws_notice_decode_inline_html((string) ($v ?? '')); $_mwsNlFormVal = static fn ($v): string => mws_notice_form_value((string) ($v ?? '')); $mwsNlGeneralToRecipients = is_array($noticeLetterState['to_recipients'] ?? null) ? $noticeLetterState['to_recipients'] : []; if ($mwsNlGeneralToRecipients === []) { $mwsNlGeneralToRecipients = [['designation' => '—', 'department' => '']]; } $mwsNlRecipientRows = array_chunk($mwsNlGeneralToRecipients, 2); $mwsNlSigState = is_array($noticeLetterSignature ?? null) ? $noticeLetterSignature : []; $mwsNlSigEffective = trim((string) ($mwsNlSigState['effective_url'] ?? '')); $mwsNlSigDrawn = trim((string) ($mwsNlSigState['drawn_url'] ?? '')); $mwsNlSigUploaded = trim((string) ($mwsNlSigState['uploaded_url'] ?? '')); $__mwsNlOrg = $meeting->organizer; $__mwsNlOrgName = trim((string) ($__mwsNlOrg?->name ?? $meeting->creator?->name ?? '')); $__mwsNlOrgDesignation = trim((string) ($__mwsNlOrg?->designation?->name ?? '')); $mwsNlHeaderDeptDevSection = trim((string) ($mwsNlHeaderDeptDevSection ?? 'EDUCATION SECTION')); if ($mwsNlHeaderDeptDevSection === '') { $mwsNlHeaderDeptDevSection = 'EDUCATION SECTION'; } $mwsNlGeneralSubjectLine = trim((string) ($noticeLetterState['subject_line'] ?? '')); if ($mwsNlGeneralSubjectLine === '') { $mwsNlGeneralSubjectLine = mb_strtoupper(trim((string) ($meeting->title ?? '')), 'UTF-8') ?: '—'; } $mwsNlGeneralParaIndentHtml = str_repeat(' ', 15); $mwsNlEnsureGeneralParaIndentHtml = static function (string $html) use ($mwsNlGeneralParaIndentHtml): string { if ($html === '') { return $mwsNlGeneralParaIndentHtml; } $decoded = mws_notice_decode_inline_html($html); if (preg_match('/^(\x{00A0}| )+/u', $decoded, $m) && mb_strlen($m[0]) >= 15) { return $html; } if (trim(strip_tags($decoded)) === '') { return $mwsNlGeneralParaIndentHtml; } return $mwsNlGeneralParaIndentHtml.$html; }; @endphp
|
GOVERNMENT OF SINDH
PLANNING & DEVELOPMENT DEPARTMENT {!! nl2br(e(mws_notice_decode_plain($mwsNlHeaderDeptDevSection))) !!} @if ($canEditNoticeLetter) @endif
NO. {{ $_mwsNlDec($noticeLetterState['reference_display']) }}
@if ($canEditNoticeLetter)
NO.
@endif
{{ $_mwsNlDec($noticeLetterState['ref_dated_line'] ?? '') }} @if ($canEditNoticeLetter) @endif |
|
{{ $_mwsNlDec($designation) }}
@if ($department !== '' || $canEditNoticeLetter)
{{ $_mwsNlDec($department) }} @endif @if ($canEditNoticeLetter) @endif |
@endforeach
@if (count($mwsNlRecipientPair) === 1)
@endif |
| SUBJECT: | {{ $_mwsNlDec($mwsNlGeneralSubjectLine) }} |
@if ($canEditNoticeLetter) @endif {!! $mwsNlItemHtml !!}
@endforeach @if ($canEditNoticeLetter){!! $mwsNlGeneralParaIndentHtml !!}
@endif