$categories_details->getRouteKey(), 'key' => [ 'public' => $categories_details->getPublicKey(), 'route' => $categories_details->getRouteKey(), ], 'name' => $categories_details->name, 'description' => $categories_details->description, 'category_id' => $categories_details->category_id, 'subcategory_id' => $categories_details->subcategory_id, 'status' => $categories_details->status, 'url' => [ 'public' => trans_url('categories_detail/'.$categories_details->getPublicKey()), 'user' => guard_url('categories_detail/categories_details/'.$categories_details->getRouteKey()), ], 'status' => trans('app.'.$categories_details->status), 'created_at' => format_date($categories_details->created_at), 'updated_at' => format_date($categories_details->updated_at), ]; } }