@php /** * Editable working-paper "Project's Objectives and Brief Description" with Summernote + AI assist. * Expects: $v (callable), $textareaClass, optional $fieldIdPrefix, $canEditWorkingPaperBody, $wpPreviewOnly */ $textareaClass = $textareaClass ?? 'prepwp-textarea'; $fieldIdPrefix = $fieldIdPrefix ?? 'wp-objectives-brief'; $textareaId = $fieldIdPrefix . '-field'; $pcSourceHtml = (string) $v('pc_objectives_brief_source', ''); $objectivesBrief = $v('objectives_brief'); $canEdit = $canEditWorkingPaperBody ?? true; $isPreview = ! empty($wpPreviewOnly); $showEditor = $canEdit && ! $isPreview; @endphp @if (! $showEditor)
@if (\App\Support\WorkingPaperRichTextHtml::hasVisibleContent($objectivesBrief))
{!! \App\Support\WorkingPaperRichTextHtml::display($objectivesBrief) !!}
@endif
@else
@endif