@extends('layouts.app') @php use App\Services\ChangeControlService; use App\Support\RoleNames; $fmtDate = function ($value, string $format = 'M j, Y H:i') { if (empty($value)) return '—'; try { return \Illuminate\Support\Carbon::parse($value)->format($format); } catch (\Throwable $e) { return (string) $value; } }; $pendingInstance = $change->latestApprovalInstance(); $hasPending = $pendingInstance && in_array($pendingInstance->status, ['PENDING', 'IN_PROGRESS']); @endphp @section('title', $change->change_number . ' — ' . $change->title) @section('content')
#{{ $pendingInstance->instance_id }}
is pending at step {{ $pendingInstance->current_step }}.
{!! nl2br(e($change->description)) !!}
{!! nl2br(e($change->justification)) !!}
@if($change->expected_benefits){!! nl2br(e($change->expected_benefits)) !!}
@endif @if($change->risks_if_not_implemented){!! nl2br(e($change->risks_if_not_implemented)) !!}
@endif{!! nl2br(e($ia->summary)) !!}
| {{ Str::headline($key) }} | @if(is_bool($value)) {{ $value ? 'Yes' : 'No' }} @elseif(is_array($value)) {{ implode(', ', $value) }} @else {{ $value ?: '—' }} @endif |
|---|
{!! nl2br(e($ia->mitigation_plan)) !!}
@endif @else| # | Step | Responsible | Due | Completed | Status | Actions |
|---|---|---|---|---|---|---|
| {{ $step->step_order }} |
{{ $step->step_title }}
@if($step->step_description)
{{ Str::limit($step->step_description, 120) }} @endif |
{{ $step->responsible?->name ?? '—' }} | {{ $fmtDate($step->due_date, 'M j, Y') }} | {{ $fmtDate($step->completed_date, 'M j, Y') }} | {{ $step->status }} | {{-- Quick status dropdown --}} {{-- Full edit button --}} {{-- Delete button --}} |
{!! nl2br(e($check->results)) !!}
@endif| Type | ID | Relationship | Impact Notes | Actions |
|---|---|---|---|---|
| {{ $link->linked_type }} | #{{ $link->linked_id }} | {{ $link->relationship }} | {{ Str::limit($link->impact_notes, 120) }} |
| Date | User | Action | Description |
|---|---|---|---|
| {{ $fmtDate($t->changed_at) }} | {{ $t->user?->name ?? 'System' }} | {{ $t->action_type }} |
{{ $t->action_description }} |
| No audit entries. | |||