@extends('layouts.app') @php use Jfcherng\Diff\DiffHelper; @endphp @push('datatable-styles') @include('sections.datatable_css') @endpush @section('content')
{{--

{{ $pageTitle }}

--}}
@if ($previousPageLink !== 'disabled') {{ __('Previous') }} @endif
@if ($nextPageLink !== 'disabled') {{ __('Next') }} @endif
@php try { $diff = $currentPage->diff($previousPage); } catch (\Exception $e) { //dd($e->getMessage()); $diff = []; } @endphp @if (!empty($diff))
@foreach ($currentPage->diff($previousPage) as $field => $value) @endforeach

{{ ucwords(str_replace('_', ' ', $field)) }}

{!! DzHelper::diff_highlight( htmlentities($previousPage ? $previousPage->getModel()->$field : '-'), htmlentities($currentPage->getModel()->$field), 'old' ) !!}
@else

{{ __('No major changes found.')}}

@endif
@endsection @push('scripts') @endpush