@extends('layout') @section('title', $record->code.' · '.$record->title) @section('content')
← {{ $recordType->plural() }}
{{ $record->code }}{{ $recordType->stage() }}v{{ $record->version }}

{{ $record->title }}

{{ $record->summary ?: 'No summary has been recorded.' }}

{{ str($record->status)->replace('_',' ')->title() }}{{ ucfirst($record->priority) }}{{ ucfirst($record->confidence) }} confidence
@if(auth()->user()->canAtlas('records.update'))Edit record@endif @if($recordType === \App\Enums\RecordType::Decision && $record->status !== 'approved' && auth()->user()->canAtlas('decisions.approve'))@endif
Accountability

Control record

Owner
{{ $record->owner?->name ?? 'Missing' }}
Approver
{{ $record->approver?->name ?? 'Not set' }}
Due
{{ $record->due_at?->format('d M Y, H:i') ?? 'Not set' }}
Review
{{ $record->review_at?->format('d M Y, H:i') ?? 'Not set' }}
Cycle
{{ $record->operatingCycle?->name ?? 'Not assigned' }}
Horizon
{{ $record->horizon }}
Source authority
{{ $record->source_authority ?: 'Missing' }}
Created by
{{ $record->creator?->name ?? 'System' }} · {{ $record->created_at->format('d M Y') }}
@if($record->decision_rationale || $record->definition_of_done || $record->expected_outcome || $record->actual_outcome || $record->lesson)
Decision chain

Rationale, outcome & learning

@foreach([['Definition of done',$record->definition_of_done],['Decision rationale / conditions',$record->decision_rationale],['Expected outcome',$record->expected_outcome],['Actual outcome / variance',$record->actual_outcome],['Lesson / follow-up',$record->lesson]] as [$label,$value]) @if($value)

{{ $label }}

{!! nl2br(e($value)) !!}

@endif @endforeach
@endif
Model context

Relationships & dependencies

@if(auth()->user()->canAtlas('records.update'))@endif
@forelse($record->outgoingRelationships as $relationship)
{{ config('atlas.relationship_types.'.$relationship->relationship_type, str($relationship->relationship_type)->headline()) }}{{ $relationship->toRecord->code }} {{ $relationship->toRecord->title }}@if(auth()->user()->canAtlas('records.update'))
@csrf @method('DELETE')
@endif
@empty
No outgoing relationships. Link evidence, dependencies, outcomes, or superseded records.
@endforelse @foreach($record->incomingRelationships as $relationship)
{{ str($relationship->relationship_type)->replace('_',' ')->title() }} this{{ $relationship->fromRecord->code }} {{ $relationship->fromRecord->title }}
@endforeach
Institutional memory

Discussion

@forelse($record->comments as $comment)
{{ mb_strtoupper(mb_substr($comment->user?->name ?? 'S',0,1)) }}
{{ $comment->user?->name ?? 'System' }}

{!! nl2br(e($comment->body)) !!}

@empty
No discussion recorded.
@endforelse
@if(auth()->user()->canAtlas('comments.create'))
@csrf
@endif
@if($recordType === \App\Enums\RecordType::Decision && auth()->user()->canAtlas('decisions.approve'))
@csrf
Human authority

Approve decision

Approval records you as the accountable authority. State the rationale, conditions, and any reversal trigger.

@endif
@csrf
Connected reality

Link another record

@csrf
Private storage

Upload evidence

@endsection