My Custom Pages Routes Suddenly throwing 404

Hey I have created a few custom pages and linked them to the model resource. Also I have registered the routes of those custom pages in the Actual resource under getPages as :
public static function getPages(): array
    {
        return [
           
           
            'index' => Pages\ListLoans::route('/'),
            'active' => Pages\ActiveLoans::route('/active'),
            'pending' => Pages\PendingLoans::route('/pending'),
            'denied' => Pages\DeniedLoans::route('/denied'),
            'defaulted' => Pages\DefaultedLoans::route('/defaulted'),
            'create' => Pages\CreateLoan::route('/create'),
            'view' => Pages\ViewLoan::route('/{record}'),
            'edit' => Pages\EditLoan::route('/{record}/edit'),
            
        ];
    }

I have added the navigation Icon to these custom groups. Now the problem is each time I try to access the route am getting a 404.
Was this page helpful?