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