$activity_log->getRouteKey(), 'key' => [ 'public' => $activity_log->getPublicKey(), 'route' => $activity_log->getRouteKey(), ], 'log_name' => $activity_log->log_name, 'description' => $activity_log->description, 'subject_id' => $activity_log->subject_id, 'subject_type' => $activity_log->subject_type, 'causer_id' => $activity_log->causer_id, 'causer_type' => $activity_log->causer_type, 'properties' => $activity_log->properties, 'url' => [ 'public' => trans_url('activity/'.$activity_log->getPublicKey()), 'user' => guard_url('activity/activity_log/'.$activity_log->getRouteKey()), ], 'status' => trans('app.'.$activity_log->status), 'created_at' => format_date($activity_log->created_at), 'updated_at' => format_date($activity_log->updated_at), ]; } }