@extends('layouts.app') @section('title', 'Content History') @section('nav_website', 'bg-teal-50 text-teal-700 font-semibold') @section('page_title', 'Content History') @section('page_subtitle', 'Every text change to website content — with one-click restore') @section('content') @if(session('success'))
{{ session('success') }}
@endif
Back to Website CMS @if($revisions->isEmpty())
No content changes recorded yet. Edits you make in the CMS will appear here.
@else
@foreach($revisions as $rev)
{{ ucfirst($rev->section) }} {{ $rev->key }}

{{ $rev->user_name ?? 'System' }} · {{ $rev->created_at->diffForHumans() }} · {{ $rev->created_at->format('M j, Y g:i A') }}

Before {{ \Illuminate\Support\Str::limit($rev->old_value, 200) ?: '(empty)' }}
After {{ \Illuminate\Support\Str::limit($rev->new_value, 200) ?: '(empty)' }}
@csrf
@endforeach
{{ $revisions->links() }}
@endif
@endsection