$category->getRouteKey(), 'key' => [ 'public' => $category->getPublicKey(), 'route' => $category->getRouteKey(), ], 'id' => $category->id, 'parent_id' => $category->parent_id, 'name' => $category->name, 'description' => $category->description, 'slug' => $category->slug, 'status' => $category->status, 'deleted_at' => $category->deleted_at, 'updated_at' => $category->updated_at, 'created_at' => $category->created_at, 'url' => [ 'public' => trans_url('category/'.$category->getPublicKey()), 'user' => guard_url('category/category/'.$category->getRouteKey()), ], 'status' => trans('app.'.$category->status), 'created_at' => format_date($category->created_at), 'updated_at' => format_date($category->updated_at), ]; } }