@props(['trust'])

Trust Version History

Track all changes to your trust

v{{ $trust->version ?? 1 }} Current Version
@php $versionHistory = $trust->versionHistory()->orderBy('version_number', 'desc')->limit(5)->get(); @endphp @if($versionHistory->count() > 0)
@foreach($versionHistory as $idx => $version)
@if($idx < $versionHistory->count() - 1)
@endif
{{ $version->version_number }}

{{ $idx === 0 ? '✨ Latest Update' : 'Version Update' }}

{{ $version->updated_by_role ?? 'Client' }}
@if($version->section_updated) {{ ucfirst(str_replace('_', ' ', $version->section_updated)) }} @else Trust Updated @endif
@if($version->changes_summary)

{{ $version->changes_summary }}

@endif
{{ $version->created_at->format('M d, Y · g:i A') }} @if($idx === 0) Current @endif
@endforeach
@if($trust->versionHistory()->count() > 5)
View All {{ $trust->versionHistory()->count() }} Versions
@endif @else
📋

No version history yet

Changes will appear here as you update your trust

@endif