@php $stage = is_array($stage ?? null) ? $stage : []; $canEdit = (bool) ($canEdit ?? false); $actions = is_array($actions ?? null) ? $actions : []; $allSubs = is_array($allSubs ?? null) ? $allSubs : []; $whoCat = is_array($whoCat ?? null) ? $whoCat : []; $catalog = is_array($catalog ?? null) ? $catalog : []; $enterGates = $catalog['enter_gates'] ?? []; $exitGates = $catalog['exit_gates'] ?? []; @endphp
{{ (int) ($stage['number'] ?? 0) }} @if ($canEdit) @endif
@foreach (($stage['sub_stages'] ?? []) as $sub) @php $sub = is_array($sub) ? $sub : []; @endphp
@if ($canEdit) @endif
@foreach (($sub['transitions'] ?? []) as $tr) @php $tr = is_array($tr) ? $tr : []; @endphp
@if ($canEdit)
@endif
@forelse (($tr['whos'] ?? []) as $who) @php $who = is_array($who) ? $who : []; @endphp
@include('admin-controls.partials.pc-iv-wf-who-value', [ 'whoType' => $who['who_type'] ?? 'authority', 'whoValue' => $who['who_value'] ?? '', 'whoCat' => $whoCat, 'canEdit' => $canEdit, ]) @if ($canEdit) @endif
@empty
No Who = any current holder may fire this action.
@endforelse
@endforeach
@endforeach