@php if (! isset($isPndRoleViewer)) { $viewerRoleSlug = strtolower((string) (optional(auth()->user()->role)->slug ?? '')); $isPndRoleViewer = $viewerRoleSlug === 'pnd'; } @endphp @if(can('pc-forms', 'edit')) @endif @if(can('pc-forms', 'delete')) {{-- Delete only when permission and form is draft/rejected; action set by JS to pc-forms/{id} or pc-forms/drafts/{draft} --}} @endif Create Working Paper Position Paper @if(can('pc-forms', 'can_check') || can('pc-forms', 'can_department_approve')) {{-- Checker and department stages share this pair in JS. Checker stage (can_check) shows Submit/Return; department keeps Approve/Defer (labels set in JS). --}}
@csrf
@endif @if(can('pc-forms', 'can_approve')) {{-- --}}
@csrf
@endif @if(can('pc-forms', 'view_history_modal')) @endif @php $pciShowCoverDocBtns = can('pc-forms', 'view') || can('pc-forms', 'edit') || can('pc-forms', 'add') || can('pc-forms', 'list') || can('pc-forms', 'list_all') || can('pc-forms', 'can_check') || can('pc-forms', 'can_department_approve') || can('pc-forms', 'can_approve'); @endphp @if($pciShowCoverDocBtns) Section (Preview) PC-I Modified PC-I Revised PC-I PC-II PC-IIIa PC-IIIb PC-IV PC-V @endif {{--@if(can('pc-forms', 'pc1_analyze_ai')) @endif @if(can('pc-forms', 'pc1_compare_ai')) @endif --}} @if(can('meeting_workspace', 'add')) Schedule Meeting @endif View Working Paper View Meeting Notice Letter View Minutes of Meetings View Advice Letter View AA (Administrative Approval) Authentication of AA
{{-- Defer/Return PC (checker/approver): remarks required; attachment optional. Checker stage uses Return labels via JS. --}} {{-- Checker / Approver (PC Forms index details modal): optional remarks + attachment before approve; same backend keys as chairman modal. --}} {{-- Forwarded chairman only: same approve UX as Meeting Workspace (remarks, attachment, signature → pc-forms.approve). Other users use checker/approver footer forms. --}} {{-- Chairman/PnD defer: same workflow as Meeting Workspace PC defer (PcFormService::reject). Remarks required, attachment optional, signature required. --}} @if (can('pc-forms', 'add')) @include('partials.pc-type-selection-modal') @include('partials.pc-iii-sub-selection-modal') @endif @include('pc-forms.partials.forward-decline-modals') @include('pc-forms.partials.send-for-comments-modals') {{-- AA / Advice action JS must load after jQuery (@push scripts). Modals stay here in DOM. --}} @push('scripts') @include('pc-forms.partials.workflow-signature-pad-scripts') @endpush