@extends('layouts.app') @section('title', 'Workflow Compliance Report') @section('content') {{-- Fixed Top Action Bar --}}
Workflow Compliance Report
{{-- Filter Section --}}
{{-- Metrics Cards --}}
Total Executed

{{ number_format($totalExecuted) }}

Workflows started
Completion Rate

{{ $completionRate }}%

Completed vs Started
Avg Time

{{ $avgTime }}

Per workflow
{{-- Recent Executions Table --}}
Recent Workflow Executions
@if(!request()->has('view_all')) View All @else Show Paginated @endif
@forelse($recentExecutions as $execution) @empty @endforelse
Workflow Outlet Executed By Started At Status Action
{{ $execution->workflow->name ?? 'Unknown Workflow' }} {{ $execution->outlet->name ?? 'Unknown Outlet' }} {{ $execution->user->name ?? 'Unknown User' }} {{ $execution->started_at ? \Carbon\Carbon::parse($execution->started_at)->format('Y-m-d H:i') : '-' }} @if($execution->status === 'completed') Completed @else In Progress @endif Details

No workflow executions found for this period.

@if($recentExecutions instanceof \Illuminate\Pagination\LengthAwarePaginator) @endif
@endsection @push('js') @endpush