@extends('layouts.app') @section('title', $menuLabel.' - PC Forms') @push('stylesheets') @include('partials.filter-card-styles') {{-- Same popup stack as PC Forms listing / Schemes / PCN indexes --}} @include('pc-forms.partials.details-modal-styles') @include('schemes.partials.project-details-modal-styles') @include('project-concept-notes.partials.show-modal-styles') @include('partials.pc-type-selection-modal-styles') @endpush @section('contents')

{{ $menuSubtitle }}

Updates as you type / change filters

Eligible schemes

@php $pcMenuKey = \App\Support\PcFormsMenu::normalize((string) ($menu ?? '')); @endphp @if ($pcMenuKey === \App\Support\PcFormsMenu::CONCEPT_NOTE && can('project-concept-notes', 'add')) Create Concept Note @elseif ($pcMenuKey === \App\Support\PcFormsMenu::PC_II && can('pc-forms', 'add')) Create PC-II @endif @if ($rows->total() > 0) Showing {{ $rows->firstItem() }}–{{ $rows->lastItem() }} of {{ number_format($rows->total()) }} @else No schemes found @endif
@php $curSort = $filters['sort'] ?? 'adp'; $curDir = $filters['dir'] ?? 'asc'; $sortMark = function (string $key) use ($curSort, $curDir) { if ($curSort !== $key) { return '↕'; } return $curDir === 'desc' ? '↓' : '↑'; }; $sortClass = function (string $key) use ($curSort) { return $curSort === $key ? 'pc-menu-sort is-active' : 'pc-menu-sort'; }; @endphp @forelse ($rows as $row) @include('pc-forms.partials.menu-row', ['row' => $row]) @empty @endforelse
ADP # {{ $sortMark('adp') }} UID {{ $sortMark('uid') }} Scheme {{ $sortMark('scheme') }} Status {{ $sortMark('status') }} Received Date {{ $sortMark('received_date') }} Submission Date {{ $sortMark('submission_date') }} Created on {{ $sortMark('created_on') }} Docs
No eligible schemes for this menu.
{{-- Modal shells in content (same as pc-forms/index + schemes/index + pcn/index) --}} @include('pc-forms.partials.details-modal-shell') @if(can_any_visit_plan('add'))
@csrf
@endif @if(can('pc-forms', 'add')) @endif @if(can('meeting_workspace', 'add')) @endif
@include('partials.pc-type-selection-modal') @include('partials.pc-iii-sub-selection-modal') @include('project-concept-notes.partials.details-modal') @include('project-concept-notes.partials.forward-decline-modals') @include('project-concept-notes.partials.send-for-comments-modals') @endsection @push('scripts') @include('workflow.partials.note-sheet-scripts') @include('pc-forms.partials.details-modal-scripts') @include('meeting-workspace.partials.mws-schedule-meeting-type-picker-script') @include('project-concept-notes.partials.show-modal-scripts') @include('project-concept-notes.partials.pcn-reviewer-signature-scripts') @endpush