@extends('admin_dashboard') @section('admin')

Update History: {{ $documentManagerInfo->document_name }}

@foreach($updates as $i => $u) @endforeach
# Update Date Details
{{ $i + 1 }} {{ $u->created_at ? date('d-m-Y', strtotime($u->created_at)) : '' }} @php $c = $u->changes ? json_decode($u->changes, true) : []; @endphp @if(!empty($c))
    @foreach($c as $field => $pair)
  • {{ $field }}: {{ $pair['old'] ?? '' }} → {{ $pair['new'] ?? '' }}
  • @endforeach
@endif
@endsection