$attribute->getRouteKey(), 'key' => [ 'public' => $attribute->getPublicKey(), 'route' => $attribute->getRouteKey(), ], 'group_id' => $attribute->group_id, 'slug' => $attribute->slug, 'name' => $attribute->name, 'description' => $attribute->description, 'images' => $attribute->images, 'icon' => $attribute->icon, 'user_id' => $attribute->user_id, 'user_type' => $attribute->user_type, 'deleted_at' => $attribute->deleted_at, 'url' => [ 'public' => trans_url('product/'.$attribute->getPublicKey()), 'user' => guard_url('product/attribute/'.$attribute->getRouteKey()), ], 'status' => trans('app.'.$attribute->status), 'created_at' => format_date($attribute->created_at), 'updated_at' => format_date($attribute->updated_at), ]; } }