@php if (!isset($history) && isset($model)) { try { $history = app(\V2\Services\ActivityLogger\ActivityLoggerService::class)->getHistory($model); } catch (\Exception $e) { $history = collect(); } } else { $history = $history ?? collect(); } $model = $model ?? null; @endphp @if($history->isNotEmpty()) @include('v2-service-activitylogger::cms.timeline', ['model' => $model, 'history' => $history, 'title' => 'Últimas Alterações']) @endif