$attribute->getRouteKey(), 'key' => [ 'public' => $attribute->getPublicKey(), 'route' => $attribute->getRouteKey(), ], 'id' => $attribute->id, 'type' => $attribute->type, 'name' => $attribute->name, 'slug' => $attribute->slug, 'created_at' => $attribute->created_at, 'updated_at' => $attribute->updated_at, '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), ]; } }