{{-- resources/views/workflows/index.blade.php --}} @extends('layouts.app') @section('title', 'Workflow Management') @section('content')

Universal Approval Workflows

Create Workflow

{{ $workflows->count() }}

Total Workflows

{{ $workflows->where('is_active', true)->count() }}

Active

{{ $workflows->where('is_default', true)->count() }}

Default

{{ $workflows->sum('steps_count') }}

Total Steps

@forelse($workflows as $workflow)
{{ $workflow->workflow_name }}
{{ $modules[$workflow->module_type] ?? $workflow->module_type }}
{{ $workflow->status_label }}
{{ $workflow->workflow_code }}

{{ $workflow->description ?: 'No description' }}

Steps: {{ $workflow->steps_count }} Active: {{ $workflow->active_instances_count }} v{{ $workflow->version }}
@if($workflow->is_default)
Default Workflow
@endif
@empty
No Workflows Found

Create your first workflow to get started.

Create Workflow
@endforelse
@push('styles') @endpush @endsection