@extends('layouts.app') @section('title', 'Approval Instances') @section('content')
| ID | Record | Workflow | Module | Initiator | Initiated | Current Step | Status | Completed | Actions |
|---|---|---|---|---|---|---|---|---|---|
| #{{ $instance->instance_id }} |
{{ $instance->record_number ?: '#' . $instance->record_id }}
{{ Str::limit($instance->record_title ?: $instance->record_type, 50) }} |
{{ $instance->workflow?->workflow_name }} | {{ $instance->record_type }} | {{ $instance->initiator?->name ?? '—' }} | {{ $instance->initiated_at?->format('M j, Y H:i') }} | @if(in_array($instance->status, ['PENDING', 'IN_PROGRESS'], true)) Step {{ $instance->current_step }} @else — @endif | {{ $instance->status }} |
@if($instance->completed_at)
{{ $instance->completed_at->format('M j, Y') }}
{{ $instance->finalDecisionBy?->name }} @else — @endif |
@if(in_array($instance->status, ['PENDING', 'IN_PROGRESS'], true)) @endif |
| No approval instances found. | |||||||||