$product_attribute->getRouteKey(), 'key' => [ 'public' => $product_attribute->getPublicKey(), 'route' => $product_attribute->getRouteKey(), ], 'product_id' => $product_attribute->product_id, 'attribute_id' => $product_attribute->attribute_id, 'quantity' => $product_attribute->quantity, 'price' => $product_attribute->price, 'discount' => $product_attribute->discount, 'url' => [ 'public' => trans_url('product/'.$product_attribute->getPublicKey()), 'user' => guard_url('product/product_attribute/'.$product_attribute->getRouteKey()), ], 'status' => trans('app.'.$product_attribute->status), 'created_at' => format_date($product_attribute->created_at), 'updated_at' => format_date($product_attribute->updated_at), ]; } }