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