$attribute->getRouteKey(), 'key' => [ 'public' => $attribute->getPublicKey(), 'route' => $attribute->getRouteKey(), ], 'slug' => $attribute->slug, 'group_id' => $attribute->group_id, 'name' => $attribute->name, 'value' => $attribute->value, 'order' => $attribute->order, '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), ]; } }