@php $workflow = $workflow ?? []; $items = $workflow['items'] ?? []; $actions = $workflow['actions'] ?? []; $currentStage = $workflow['current_stage'] ?? null; @endphp
Hiring Workflow
Current Status: {{ $generatedCurrentStatus ?? 'New Applicant' }}
@if($workflow['is_rejected'] ?? false) Rejected @elseif($workflow['is_hired'] ?? false) Hired @else {{ $workflow['current_label'] ?? 'Current Stage' }} @endif
@foreach($items as $item)
@if($item['state'] === 'completed') @elseif($item['state'] === 'rejected') @elseif($item['state'] === 'locked') @else @endif
{{ $item['label'] }}
{{ $item['owner'] ?? '-' }}
{{ $item['summary'] }}
@endforeach
@if(!$canUpdateStatuses)
You can view this workflow, but only the assigned employee can update it.
@elseif(count($actions) > 0)
Available Action
@foreach($actions as $action) @php $isScheduleAction = in_array($action['action'], ['open_demo_schedule', 'open_stage_schedule'], true); $canRunAction = !$isScheduleAction || ($canScheduleWorkflow ?? false); @endphp @endforeach
@endif
@push('scripts') @endpush