$statistics->getRouteKey(), 'key' => [ 'public' => $statistics->getPublicKey(), 'route' => $statistics->getRouteKey(), ], 'type' => $statistics->type, 'value' => $statistics->value, 'date' => $statistics->date, 'user_id' => $statistics->user_id, 'user_type' => $statistics->user_type, 'deleted_at' => $statistics->deleted_at, 'url' => [ 'public' => trans_url('statistic/'.$statistics->getPublicKey()), 'user' => guard_url('statistic/statistics/'.$statistics->getRouteKey()), ], 'status' => trans('app.'.$statistics->status), 'created_at' => format_date($statistics->created_at), 'updated_at' => format_date($statistics->updated_at), ]; } }