@extends('layouts.app') @section('title', 'Workflow Step Details') @section('page-header')

Workflow Step Details

Edit Back
@endsection @section('content') @php // Helper function to safely format dates $formatDate = function($date) { if (!$date) return 'N/A'; if ($date instanceof \DateTime) return $date->format('M d, Y H:i'); if (is_string($date)) return date('M d, Y H:i', strtotime($date)); return 'N/A'; }; $formatDateOnly = function($date) { if (!$date) return 'N/A'; if ($date instanceof \DateTime) return $date->format('M d, Y'); if (is_string($date)) return date('M d, Y', strtotime($date)); return 'N/A'; }; @endphp
Step Information

{{ $step->step_name }}

Step {{ $step->step_order }}

{{ $step->approver_type }}

{{ $step->approval_mode }}

@if($step->required_role) {{ $step->required_role }} @else N/A @endif

@if($step->approver_user_id) {{ $step->approver->name ?? 'User #' . $step->approver_user_id }} @else N/A @endif

{{ $step->due_days }} days

{{ $step->min_approvers }}

{{ number_format($step->approval_threshold, 2) }}

@if($step->escalation_enabled) Enabled After {{ $step->escalation_hours }} hours @else Disabled @endif

@if($step->description)

{{ $step->description }}

@endif
Step Settings
@if($step->is_required)

Required

@else

Optional

@endif
@if($step->allow_delegation)

Delegation Allowed

@else

No Delegation

@endif
@if($step->allow_rejection)

Rejection Allowed

@else

No Rejection

@endif
@if($step->allow_comments)

Comments Allowed

@else

No Comments

@endif
@if($step->allow_attachments)

Attachments Allowed

@else

No Attachments

@endif
@if($step->require_esignature)

E-Signature Required

@else

No E-Signature

@endif
Workflow Info
Workflow Name {{ $workflow->workflow_name }}
Workflow Code {{ $workflow->workflow_code }}
Module Type {{ $workflow->module_type }}
Escalation
@if($step->escalation_enabled)
Escalation Enabled

Escalation after {{ $step->escalation_hours }} hours

@if($step->escalation_action)

Action: {{ $step->escalation_action }}

@endif @if($step->escalation_role)

Escalate to: {{ $step->escalation_role }}

@endif
@else

Escalation disabled

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