@extends('layouts.app') @section('title', 'Workflow Steps') @section('page-title', 'Workflow Steps: ' . $workflow->workflow_name) @section('breadcrumb') @endsection @section('content')

Workflow Steps

Manage approval steps for this workflow
Back to Workflow Add Step
@if(session('success')) @endif @if(session('error')) @endif
Workflow Steps {{ $steps->count() }} steps
@if($steps->count() > 0)
@foreach($steps as $step) @endforeach
Order Step Name Approver Type Required Role Approval Mode Due Days Actions
{{ $step->step_order }} {{ $step->step_name }} @if($step->description)
{{ Str::limit($step->description, 50) }} @endif
@php $typeColors = [ 'USER' => 'success', 'ROLE' => 'warning', 'DEPARTMENT' => 'info' ]; @endphp {{ $step->approver_type }} @if($step->approver_type == 'USER' && $step->approver_user_id)
{{ optional($step->approver)->name ?? 'User #' . $step->approver_user_id }} @elseif($step->approver_type == 'DEPARTMENT' && $step->approver_department_id)
Department #{{ $step->approver_department_id }} @endif
@if($step->required_role) {{ $step->required_role }} @else N/A @endif @php $modeColors = [ 'ANY' => 'success', 'ALL' => 'danger', 'CHAIN' => 'warning' ]; @endphp {{ $step->approval_mode }} @if($step->min_approvers > 1)
Min: {{ $step->min_approvers }} @endif
{{ $step->due_days }} days @if($step->escalation_enabled)
Escalation: {{ $step->escalation_hours }}h @endif
@csrf @method('DELETE')
Step Summary
Total Steps: {{ $steps->count() }}
Required Steps: {{ $steps->where('is_required', true)->count() }}
With Escalation: {{ $steps->where('escalation_enabled', true)->count() }}
With E-Signature: {{ $steps->where('require_esignature', true)->count() }}
@else
No steps defined for this workflow

Start by adding your first approval step.

Add First Step
@endif
Workflow Information
Workflow Code

{{ $workflow->workflow_code }}

Module Type

{{ $workflow->module_type }}

Status

@if($workflow->is_active) Active @else Inactive @endif @if($workflow->is_default) Default @endif

Version

v{{ $workflow->version }}

@if($workflow->description)
Description

{{ $workflow->description }}

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