@extends('layouts.app') @section('title', 'Workflow Bypass') @push('stylesheets') @endpush @section('contents')
Only users with the Workflow Bypass permission can open this screen. Skipping or reverting steps is recorded in Activity Logs and on the form’s forward timeline. Revert asks what to do with notifications, reviews, and forwards; it does not unapprove BPMS, delete MoM/letters/working papers, or unlink meetings (you will be warned when those exist).

1. Select scheme, ADP No. & UID

@php $wbSelectedId = $selected['id'] ?? ''; $wbSelectedName = $selected['text'] ?? ''; $wbSelectedAdp = ($selected['adp'] ?? '') !== '' ? $selected['adp'] : '—'; $wbSelectedUid = ($selected['uid'] ?? '') !== '' ? $selected['uid'] : '—'; $wbLookupUrl = route('admin-controls.workflow-bypass.search'); @endphp
@if ($snapshot)

2. Full flow — {{ $snapshot['label'] }}

Current step: {{ $snapshot['current_label'] }}

@if (! empty($snapshot['forum']))

Workflow stage: {{ $snapshot['forum']['stage'] !== '' ? $snapshot['forum']['stage'] : '—' }} · Actor ID: {{ $snapshot['forum']['actor_id'] > 0 ? $snapshot['forum']['actor_id'] : '—' }} · Modified: {{ ! empty($snapshot['forum']['is_modified']) ? 'yes' : 'no' }} · Forum: {{ $snapshot['forum']['outcome'] !== '' ? $snapshot['forum']['outcome'] : 'none' }} @if (! empty($snapshot['forum']['track'])) ({{ $snapshot['forum']['track'] }}) @endif @if (! empty($snapshot['forum']['return_only'])) · Return-only @endif

@endif @if (! empty($snapshot['locked']))
{{ $snapshot['locked_reason'] }} Forward skip is locked; you can still use Revert / back below.
@else
@csrf

Select the step you want to jump up to (optional if you only need to record a forum decision that already happened outside PMS). Every unfinished step from the current one through that pointer is skipped. Do not skip the forum step when the scheme is already at Concerned Section — record Modification Required only.

    @foreach ($snapshot['steps'] as $step) @php $status = $step['status']; $canSkip = $status !== 'done' && empty($snapshot['locked']); @endphp
  • @if ($canSkip) @else @endif
    {{ $step['label'] }}
    @if (! empty($step['sublabel']))
    {{ $step['sublabel'] }}
    @endif
    @if ($status === 'done') Completed @elseif ($status === 'current') Current — select a pointer at or after this step @else Pending @endif
  • @endforeach

Stamps Approved, Deferred, or Modification Required, sets the live track, current actor, and enabled actions. For ADP schemes already at Concerned Section after an off-system modification, choose Modification Required without skipping steps.

@if ($canApply) @else

You can view this screen but do not have Skip / bypass / revert steps permission.

@endif
@endif
@if (! empty($snapshot['can_revert']))

3. Revert / back

Choose where the scheme should wait next (become Current again). After you pick a step, we show what will be cleaned up — then you decide what to keep or remove.

@csrf
    @foreach ($snapshot['steps'] as $step) @php $status = $step['status']; $canTarget = $status === 'done' || (! empty($snapshot['locked']) && $status === 'current'); @endphp
  • @if ($canTarget) @else @endif
    {{ $step['label'] }}
    @if (! empty($step['sublabel']))
    {{ $step['sublabel'] }}
    @endif
    {{ $step['key'] }}
    @if ($status === 'done') Finished — can wait here again @elseif ($status === 'current') Waiting here now @else Not reached yet @endif
  • @endforeach
Revert preview

Select a step to preview impact

Loading
Checking what will change…
Could not load preview
Something went wrong. Try selecting the step again.
Resolve the blocker above, or choose a later target step.
What should we remove?

Items created by an admin skip are removed by default. Normal workflow history stays unless you tick those options.


@if ($canApply) @else

You can view this screen but do not have Skip / bypass / revert steps permission.

@endif
@endif @endif
@endsection @push('scripts') @endpush