@props(['will'])

Version History

Track all changes to your will

v{{ $will->version ?? 1 }} Current Version
@php $versionHistory = $will->versionHistory()->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->getRoleLabel() }}
@if($version->sections_json && is_array($version->sections_json)) @foreach($version->sections_json as $section) {{ ucfirst(str_replace('_', ' ', $section)) }} @endforeach @elseif($version->section_updated) {{ ucfirst(str_replace('_', ' ', $version->section_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($will->versionHistory()->count() > 5)
View All {{ $will->versionHistory()->count() }} Versions
@endif @else
📝

No version history yet

Changes will appear here as you update your will

@endif