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