@extends('layouts.admin') @section('title', 'Application Step Navigation') @section('content')

Step Navigation Analysis

Application: {{ $application->application_number }}

Back to Application
Application Information

Application Number: {{ $application->application_number }}

Applicant: {{ $application->personalInformation->full_name ?? 'N/A' }}

Status: {{ ucfirst($application->status) }}

Position: {{ $application->advertisement->title ?? 'N/A' }}

Department: {{ $application->advertisement->department->name ?? 'N/A' }}

Created: {{ $application->created_at->format('M d, Y h:i A') }}

Step Navigation Status
@foreach($activeSteps as $step) @php $stepInfo = $accessibleSteps[$step->slug] ?? null; $status = $stepInfo ? $stepInfo['status'] : 'unknown'; $accessible = $stepInfo ? $stepInfo['accessible'] : false; $hasData = $application->hasStepData($step->slug); $isSkipped = $application->isStepSkipped($step->slug); $recordsCount = $application->getStepRecordsCount($step->slug); @endphp @endforeach
Order Step Name Status Accessible Has Data Is Skipped Records Count Actions
{{ $step->order_index }} {{ $step->name }} @if($status === 'completed') Completed @elseif($status === 'skipped') Skipped @elseif($status === 'locked') Locked @else {{ ucfirst($status) }} @endif @if($accessible) Yes @else No @endif @if($hasData) Yes @else No @endif @if($isSkipped) Yes @else No @endif @if($recordsCount > 0) {{ $recordsCount }} @else 0 @endif @if($accessible) @else Not Accessible @endif
{{ $statistics['total'] }}
Total Steps
{{ $statistics['completed'] }}
Completed Steps
{{ $statistics['skipped'] }}
Skipped Steps
{{ $statistics['locked'] }}
Locked Steps
Navigation Flow
Navigation Rules
  • Accessible Steps: Steps with data, skipped steps, or current/previous steps
  • Completed Steps: Steps that have data entries
  • Skipped Steps: Steps marked as not applicable by the user
  • Locked Steps: Steps that cannot be accessed until prerequisites are met
First Accessible Step: {{ $firstAccessibleStep ?? 'None' }}

This is where users will be redirected if they try to access an inaccessible step.

@endsection