@extends('layouts.app') @section('title','Revision Logs') @section('page-title','Revision Logs') @section('page-description','Review changes made to syllabus and programme records, including import activities and manual updates.') @section('page-badge', $logs->total().' entries') @section('content') @php $importCount = $logs->getCollection()->where('action', 'imported')->count(); $editCount = $logs->getCollection()->whereIn('action', ['updated','edited'])->count(); $deleteCount = $logs->getCollection()->where('action', 'deleted')->count(); @endphp
{{ $logs->total() }}Total log entries
{{ $importCount }}Imported in this page
{{ $editCount }}Updated in this page
{{ $deleteCount }}Deleted in this page
@if(request()->filled('search')) @endif

Revision Activity

Use View to inspect the record snapshot before and after a change.

Showing {{ $logs->firstItem() ?? 0 }}–{{ $logs->lastItem() ?? 0 }} of {{ $logs->total() }}
@forelse($logs as $l) @empty @endforelse
Date & time User Action Record Before After Actions
{{ $l->created_at?->format('d/m/Y') }} {{ $l->created_at?->format('h:i:s A') }} {{ $l->user?->name ?? 'System' }} {{ $l->user?->role ? ucfirst($l->user->role) : 'Automated action' }} {{ ucfirst($l->action) }} {{ $l->record_label }} Log #{{ $l->id }} Edit
@csrf @method('DELETE')
No revision logs found Try a different search term or perform an import/update first.
{{ $logs->links() }}
@endsection