@php $activities = \Spatie\Activitylog\Models\Activity::where('subject_type', \App\Models\AwardSubmission::class) ->where('subject_id', $record->id) ->latest() ->get(); @endphp @foreach ($activities as $activity)

{{ $activity->description }}

{{ \Carbon\Carbon::parse($activity->created_at)->diffForHumans() }}
@if ($activity->properties)
@foreach ($activity->properties as $key => $value)

{{ ucfirst($key) }}: {{ is_array($value) ? implode(', ', $value) : $value }}

@endforeach
@endif
{{-- {{ ucfirst($activity->log_name) }}   --}} @if($activity->causer) •   {{ ucfirst ($activity->causer->role) }} @endif
@endforeach